Browse Source

Remove incomplete tests

Delete tests that were testing features that no longer exist in
TestCase. Unskip tests that now work.
mark_story 12 years ago
parent
commit
65b434e57a
1 changed files with 0 additions and 41 deletions
  1. 0 41
      tests/TestCase/TestSuite/TestCaseTest.php

+ 0 - 41
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)
  *
@@ -183,8 +179,6 @@ class TestCaseTest extends TestCase {
  * @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');
@@ -196,46 +190,11 @@ class TestCaseTest extends TestCase {
 	}
 
 /**
- * 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());