szurubooru/tests/Tests/JobTests/GetPropertyJobTest.php

20 lines
353 B
PHP
Raw Normal View History

2014-05-14 19:11:55 +02:00
<?php
class GetPropertyJobTest extends AbstractTest
{
public function testRetrieval()
{
$key = PropertyModel::DbVersion;
$ret = $this->assert->doesNotThrow(function() use ($key)
{
return Api::run(
new GetPropertyJob(),
[
JobArgs::ARG_QUERY => $key,
]);
});
$this->assert->areEqual(PropertyModel::get($key), $ret);
}
}