updateMeta('field', 'value'); $this->assertInstanceOf('AccountMeta', $newMeta); $secondMeta = $account->updateMeta('field', 'newValue'); $this->assertEquals($newMeta->id, $secondMeta->id); $this->assertEquals($newMeta->data, 'value'); $this->assertEquals($secondMeta->data, 'newValue'); } public function testAccountUser() { $account = f::create('Account'); $this->assertInstanceOf('Account', $account); $this->assertInstanceOf('User', $account->user); } }