szuru/tests/Tests/ModelTests/PropertyModelTest.php
2014-05-13 21:16:28 +02:00

22 lines
501 B
PHP

<?php
class PropertyModelTest extends AbstractTest
{
public function testGetAndSet()
{
$this->assert->doesNotThrow(function()
{
PropertyModel::set(PropertyModel::FeaturedPostId, 100);
});
$this->assert->areEqual(100, PropertyModel::get(PropertyModel::FeaturedPostId));
}
public function testGetAndSetWithArbitraryKeys()
{
$this->assert->doesNotThrow(function()
{
PropertyModel::set('something', 100);
});
$this->assert->areEqual(100, PropertyModel::get('something'));
}
}