szurubooru/tests/Tests/JobTests/GetPropertyJobTest.php
2014-05-14 19:14:16 +02:00

19 lines
353 B
PHP

<?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);
}
}