'locales_location',
'locales_source',
'locales_target',
]);
} /**
* Tests CRUD API.
*/
public function testStringCrudApi() { // Create source string.
$source =
$this->
buildSourceString()->
save();
$this->
assertNotEmpty($source->lid
);
// Load strings by lid and source.
$string1 =
$this->storage->
findString(['lid' =>
$source->lid
]);
$this->
assertEquals($source,
$string1);
$string2 =
$this->storage->
findString(['source' =>
$source->source, 'context' =>
$source->context
]);
$this->
assertEquals($source,
$string2);
$string3 =
$this->storage->
findString(['source' =>
$source->source, 'context' => ''
]);
$this->
assertNull($string3);
// Check version handling and updating.