Skip to content

Commit

Permalink
Remove incomplete tests
Browse files Browse the repository at this point in the history
Delete tests that were testing features that no longer exist in
TestCase. Unskip tests that now work.
  • Loading branch information
markstory committed May 22, 2014
1 parent e51f4b3 commit 65b434e
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions tests/TestCase/TestSuite/TestCaseTest.php
@@ -1,9 +1,5 @@
<?php
/**
* CakeTestCaseTest file
*
* Test Case for CakeTestCase class
*
* CakePHP : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
Expand Down Expand Up @@ -183,8 +179,6 @@ public function testBadAssertTags() {
* @return void
*/
public function testLoadFixturesOnDemand() {
$this->markTestIncomplete('Cannot work until fixtures are fixed');

$test = new FixturizedTestCase('testFixtureLoadOnDemand');
$test->autoFixtures = false;
$manager = $this->getMock('Cake\TestSuite\Fixture\FixtureManager');
Expand All @@ -195,47 +189,12 @@ public function testLoadFixturesOnDemand() {
$this->assertEquals(0, $result->errorCount());
}

/**
* testLoadFixturesOnDemand
*
* @return void
*/
public function testUnoadFixturesAfterFailure() {
$this->markTestIncomplete('Cannot work until fixtures are fixed');
$test = new FixturizedTestCase('testFixtureLoadOnDemand');
$test->autoFixtures = false;
$manager = $this->getMock('Cake\TestSuite\Fixture\FixtureManager');
$manager->fixturize($test);
$test->fixtureManager = $manager;
$manager->expects($this->once())->method('loadSingle');
$result = $test->run();
$this->assertEquals(0, $result->errorCount());
}

/**
* testThrowException
*
* @return void
*/
public function testThrowException() {
$this->markTestIncomplete('Cannot work until fixtures are fixed');
$test = new FixturizedTestCase('testThrowException');
$test->autoFixtures = false;
$manager = $this->getMock('Cake\TestSuite\Fixture\FixtureManager');
$manager->fixturize($test);
$test->fixtureManager = $manager;
$manager->expects($this->once())->method('unload');
$result = $test->run();
$this->assertEquals(1, $result->errorCount());
}

/**
* testSkipIf
*
* @return void
*/
public function testSkipIf() {
$this->markTestIncomplete('Cannot work until fixtures are fixed');
$test = new FixturizedTestCase('testSkipIfTrue');
$result = $test->run();
$this->assertEquals(1, $result->skippedCount());
Expand Down

0 comments on commit 65b434e

Please sign in to comment.