DeleteTest::testDeleteExistingObject PHP Метод

testDeleteExistingObject() публичный Метод

    public function testDeleteExistingObject()
    {
        $foo = new \Sandbox\Model\String($this->db);
        $foo['name'] = 'foo';
        $foo->save();
        $this->assertArrayHasKey('id', $foo);
        $foo->delete();
        $this->assertArrayNotHasKey('id', $foo);
    }