|
|
@ -30,4 +30,15 @@ class MetaTest extends \PHPUnit_Framework_TestCase
|
|
|
|
$model->setRawUuid($uuid);
|
|
|
|
$model->setRawUuid($uuid);
|
|
|
|
$this->assertEquals($uuid, $model->getUuid());
|
|
|
|
$this->assertEquals($uuid, $model->getUuid());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function testUuidQuery ()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$model = Meta::create([
|
|
|
|
|
|
|
|
'meta' => serialize(['name' => 'Tony'])
|
|
|
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$queried = Meta::withUuid($model->getUuid())->first();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->assertEquals($model->read('name'), $queried->read('name'));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|