Exemplo n.º 1
0
    public function testEditStoredObject()
    {
        $child = new Child();
        $child->Name = 'Child';
        $child->save();

        $expected = 'Child with edit';
        $id = $child->id();
        $childFetched = new Child;
        $childFetched->loadById($id);
        $childFetched->Name = $expected;
        $childFetched->save();

        $this->assertDocumentPropertyEquals($expected, 'Child', 'Name', $id);
    }