Simplify tests: Avoid to remove random value

This commit is contained in:
victor
2015-08-25 10:08:49 +03:00
parent cf0a0b353b
commit 47c323d36b
2 changed files with 4 additions and 12 deletions

View File

@@ -58,9 +58,8 @@ class EntityTest extends \PHPUnit_Framework_TestCase
$macBook->addValue($value);
}
$randomIndex = array_rand($values);
$macBook->removeValue($values[$randomIndex]);
unset($values[$randomIndex]);
$macBook->removeValue($values[0]);
unset($values[0]);
$this->assertEquals($values, $macBook->getValues());
}