Updated db:list to account for new db suids field.

This commit is contained in:
Abdulmhsen B. A. A
2022-05-14 21:41:37 +03:00
parent 6b3d461839
commit 39be2baaba
5 changed files with 83 additions and 22 deletions

View File

@@ -55,9 +55,12 @@ class PDOAdapterTest extends TestCase
{
$test = $this->testEpisode;
ksort($test['parent']);
ksort($test['guids']);
ksort($test['extra']);
foreach (StateInterface::ENTITY_ARRAY_KEYS as $key) {
if (null === ($test[$key] ?? null)) {
continue;
}
ksort($test[$key]);
}
$item = new StateEntity($test);
@@ -105,7 +108,16 @@ class PDOAdapterTest extends TestCase
public function test_update_conditions(): void
{
$item = $this->storage->insert(new StateEntity($this->testEpisode));
$test = $this->testEpisode;
foreach (StateInterface::ENTITY_ARRAY_KEYS as $key) {
if (null === ($test[$key] ?? null)) {
continue;
}
ksort($test[$key]);
}
$item = $this->storage->insert(new StateEntity($test));
$item->guids['guid_plex'] = StateInterface::TYPE_EPISODE . '/1000';
$updatedItem = $this->storage->update($item);