Skip to content

Instantly share code, notes, and snippets.

@heptat
Created May 21, 2011 13:31
Show Gist options
  • Save heptat/984523 to your computer and use it in GitHub Desktop.
Save heptat/984523 to your computer and use it in GitHub Desktop.
failing test of test
<?php
namespace app\tests\cases\models;
use \app\models\Test;
class OtherTest extends \acer\test\Unit {
public function setUp() {
Test::config(array('connection' => $this->getConnection()));
Test::remove();
}
public function tearDown() {
Test::remove();
}
/**
* Test getting tests associated with a client via the client_tests join model
*/
public function testGetTestsForClient() {
// $id = 1;
Test::config(array('connection' => 'development.test'));
Test::create(array(
'id' => 1,
'name' => 'Test 1',
))->save();
$test = Test::create();
$test->save();
// $test = $this->createAndSaveTest();
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment