Browse Source

Remove an unused method.

This method never gets called, so it can be removed.
mark_story 12 years ago
parent
commit
f441a1d537

+ 0 - 17
src/Console/Command/Task/TestTask.php

@@ -376,23 +376,6 @@ class TestTask extends BakeTask {
 	}
 
 /**
- * Interact with the user to get additional fixtures they want to use.
- *
- * @return array Array of fixtures the user wants to add.
- */
-	public function getUserFixtures() {
-		$proceed = $this->in(__d('cake_console', 'Bake could not detect fixtures, would you like to add some?'), ['y', 'n'], 'n');
-		$fixtures = [];
-		if (strtolower($proceed) === 'y') {
-			$fixtureList = $this->in(__d('cake_console', "Please provide a comma separated list of the fixtures names you'd like to use.\nExample: 'app.comment, app.post, plugin.forums.post'"));
-			$fixtureListTrimmed = str_replace(' ', '', $fixtureList);
-			$fixtures = explode(',', $fixtureListTrimmed);
-		}
-		$this->_fixtures = array_merge($this->_fixtures, $fixtures);
-		return $fixtures;
-	}
-
-/**
  * Is a mock class required for this type of test?
  * Controllers require a mock class.
  *

+ 0 - 15
tests/TestCase/Console/Command/Task/TestTaskTest.php

@@ -240,21 +240,6 @@ class TestTaskTest extends TestCase {
 	}
 
 /**
- * Test the user interaction for defining additional fixtures.
- *
- * @return void
- */
-	public function testGetUserFixtures() {
-		$this->Task->expects($this->at(0))->method('in')->will($this->returnValue('y'));
-		$this->Task->expects($this->at(1))->method('in')
-			->will($this->returnValue('app.pizza, app.topping, app.side_dish'));
-
-		$result = $this->Task->getUserFixtures();
-		$expected = array('app.pizza', 'app.topping', 'app.side_dish');
-		$this->assertEquals($expected, $result);
-	}
-
-/**
  * Dataprovider for class name generation.
  *
  * @return array