lithium\tests\cases\data\entity\RecordTest::testRecordExists PHP Method

testRecordExists() public method

public testRecordExists ( )
    public function testRecordExists()
    {
        $this->assertFalse($this->_record->exists());
        $this->_record->sync(313);
        $this->assertIdentical(313, $this->_record->id);
        $this->assertTrue($this->_record->exists());
        $this->_record = new Record(array('exists' => true));
        $this->assertTrue($this->_record->exists());
    }