Created
May 21, 2011 13:31
-
-
Save heptat/984523 to your computer and use it in GitHub Desktop.
failing test of test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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