Code Duplication    Length = 6-6 lines in 5 locations

Test/Case/Console/SeederTaskBaseTest.php 5 locations

@@ 376-381 (lines=6) @@
373
	 * @return void
374
	 * @covers ::getSeedingMode
375
	 */
376
	public function testGetSeedingMode() {
377
		$value = 'auto';
378
		$this->_task->expects($this->at(0))->method('_getParameter')->will($this->returnValue($value));
379
		$result = $this->_task->getSeedingMode();
380
		$this->assertEquals($value, $result);
381
	}
382
383
	/**
384
	 * Tests the getSeedingMode method
@@ 389-394 (lines=6) @@
386
	 * @return void
387
	 * @covers ::getLocale
388
	 */
389
	public function testGetLocale() {
390
		$value = 'de_DE';
391
		$this->_task->expects($this->at(0))->method('_getParameter')->will($this->returnValue($value));
392
		$result = $this->_task->getLocale();
393
		$this->assertEquals($value, $result);
394
	}
395
396
	/**
397
	 * Tests the getRecordsCount method
@@ 460-465 (lines=6) @@
457
	 * @return void
458
	 * @covers ::getValidateSeeding
459
	 */
460
	public function testGetValidateSeeding() {
461
		$value = 'first';
462
		$this->_task->expects($this->at(0))->method('_getParameter')->will($this->returnValue($value));
463
		$result = $this->_task->getValidateSeeding();
464
		$this->assertEquals($value, $result);
465
	}
466
467
	/**
468
	 * Tests the getSeedingNumber method
@@ 473-478 (lines=6) @@
470
	 * @return void
471
	 * @covers ::getSeedingNumber
472
	 */
473
	public function testGetSeedingNumber() {
474
		$value = '123456';
475
		$this->_task->expects($this->at(0))->method('_getParameter')->will($this->returnValue($value));
476
		$result = $this->_task->getSeedingNumber();
477
		$this->assertEquals($value, $result);
478
	}
479
480
	/**
481
	 * Tests the getNoTruncate method
@@ 486-491 (lines=6) @@
483
	 * @return void
484
	 * @covers ::getNoTruncate
485
	 */
486
	public function testGetNoTruncate() {
487
		$value = true;
488
		$this->_task->expects($this->at(0))->method('_getParameter')->will($this->returnValue($value));
489
		$result = $this->_task->getNoTruncate();
490
		$this->assertEquals($value, $result);
491
	}
492
493
	/**
494
	 * Tests the _getParameter method for the default value