Пример #1
0
 /**
  * testUseTableFalseExistsCheck method
  *
  * @return void
  */
 public function testUseTableFalseExistsCheck()
 {
     $this->loadFixtures('Boat');
     $Boat = new Boat();
     $Boat->id = 1337;
     $result = $Boat->exists();
     $this->assertFalse($result);
     $Boat->useTable = false;
     $Boat->id = null;
     $result = $Boat->exists();
     $this->assertFalse($result);
     // An article with primary key of '1' has been loaded by the fixtures.
     $Boat->useTable = false;
     $Boat->id = 1;
     $result = $Boat->exists();
     $this->assertFalse($result);
 }