Code Duplication    Length = 9-11 lines in 3 locations

Test/Case/Console/SeederTaskBaseTest.php 3 locations

@@ 275-285 (lines=11) @@
272
	 * @return void
273
	 * @covers ::getModelsToTruncate
274
	 */
275
	public function testGetModelsToTruncatePropertySet() {
276
		$this->_createShellMock(
277
			array('in', 'out', 'hr', 'createFile', 'error', 'err', '_stop', '_showInfo', 'dispatchShell', '_getParameter'),
278
			'PropertiesSetSeederTaskBase'
279
		);
280
281
		$result = $this->_task->getModelsToTruncate();
282
		$expected = array('AnotherModel');
283
284
		$this->assertEquals($expected, $result);
285
	}
286
287
	/**
288
	 * Tests the getModelsToTruncate method
@@ 293-303 (lines=11) @@
290
	 * @return void
291
	 * @covers ::fixtureRecords
292
	 */
293
	public function testFixtureRecords() {
294
		$this->_createShellMock(
295
			array('in', 'out', 'hr', 'createFile', 'error', 'err', '_stop', '_showInfo', 'dispatchShell', '_getParameter'),
296
			'PropertiesSetSeederTaskBase'
297
		);
298
299
		$result = $this->_task->fixtureRecords();
300
		$expected = array(array('foo' => 'bar'));
301
302
		$this->assertEquals($expected, $result);
303
	}
304
305
	/**
306
	 * Tests the _mergeFieldFormatters method
@@ 360-368 (lines=9) @@
357
	 * @return void
358
	 * @covers ::getModelName
359
	 */
360
	public function testGetModelNamePropertySet() {
361
		$this->_createShellMock(
362
			array('in', 'out', 'hr', 'createFile', 'error', 'err', '_stop', '_showInfo', 'dispatchShell'),
363
			'PropertiesSetSeederTaskBase'
364
		);
365
		$expected = 'CustomModelName';
366
		$result = $this->_task->getModelName();
367
		$this->assertEquals($expected, $result);
368
	}
369
370
	/**
371
	 * Tests the getSeedingMode method