Code Duplication    Length = 9-9 lines in 3 locations

Test/Case/Console/Command/SeederShellTest.php 1 location

@@ 81-89 (lines=9) @@
78
	 * @param string $className Optional name of the seeder shell class to mock.
79
	 * @return void
80
	 */
81
	protected function _createShellMock($methods, $className = 'SeederShell') {
82
		$out = $this->getMock('ConsoleOutput', array(), array(), '', false);
83
		$in = $this->getMock('ConsoleInput', array(), array(), '', false);
84
		$this->_shell = $this->getMock(
85
			$className,
86
			$methods,
87
			array($out, $out, $in)
88
		);
89
	}
90
91
	/**
92
	 * Test the seedability check on init

Test/Case/Console/Command/Task/DynamicModelSeederTaskTest.php 1 location

@@ 62-70 (lines=9) @@
59
	 * @param string $className Optional name of the seeder shell class to mock.
60
	 * @return void
61
	 */
62
	protected function _createShellMock($methods, $className = 'TestDynamicModelSeederTask') {
63
		$out = $this->getMock('ConsoleOutput', array(), array(), '', false);
64
		$in = $this->getMock('ConsoleInput', array(), array(), '', false);
65
		$this->_task = $this->getMock(
66
			$className,
67
			$methods,
68
			array($out, $out, $in)
69
		);
70
	}
71
72
	/**
73
	 * Tests the _getModelName method

Test/Case/Console/SeederTaskBaseTest.php 1 location

@@ 196-204 (lines=9) @@
193
	 * @param string $className Optional name of the seeder shell class to mock.
194
	 * @return void
195
	 */
196
	protected function _createShellMock($methods, $className = 'TestSeederTaskBase') {
197
		$out = $this->getMock('ConsoleOutput', array(), array(), '', false);
198
		$in = $this->getMock('ConsoleInput', array(), array(), '', false);
199
		$this->_task = $this->getMock(
200
			$className,
201
			$methods,
202
			array($out, $out, $in)
203
		);
204
	}
205
206
	/**
207
	 * Tests the execute method