isValidSaveAll() 공개 정적인 메소드

So we need to call this method inside the modified saveAll() method to return the expected single bool there, too.
사용 중단: Not sure this is useful for CakePHP 3.0
public static isValidSaveAll ( array $array ) : boolean
$array array
리턴 boolean
예제 #1
0
 /**
  * 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);
 }