So we need to call this method inside the modified saveAll() method to return the expected single bool there, too.
public static isValidSaveAll ( array $array ) : boolean | ||
$array | array | |
Résultat | boolean |
/** * UtilityTest::testIsValidSaveAll() * * @covers ::isValidSaveAll * @return void */ public function testIsValidSaveAll() { $result = Utility::isValidSaveAll([]); $this->assertFalse($result); $result = Utility::isValidSaveAll([true, true]); $this->assertTrue($result); $result = Utility::isValidSaveAll([true, false]); $this->assertFalse($result); }