isValidSaveAll() public static method

So we need to call this method inside the modified saveAll() method to return the expected single bool there, too.
Deprecation: Not sure this is useful for CakePHP 3.0
public static isValidSaveAll ( array $array ) : boolean
$array array
return boolean
コード例 #1
0
ファイル: UtilityTest.php プロジェクト: alescx/cakephp-tools
 /**
  * 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);
 }