1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00

Fix broken test

This commit is contained in:
J. King 2017-12-07 19:39:32 -05:00
parent f100cab558
commit 3a07156259

View file

@ -254,7 +254,7 @@ trait SeriesSubscription {
'order_type' => 1, 'order_type' => 1,
], ],
]; ];
$this->assertSame($exp, Arsse::$db->subscriptionList($this->user)->getAll()); $this->assertResult($exp, Arsse::$db->subscriptionList($this->user));
Phake::verify(Arsse::$user)->authorize($this->user, "subscriptionList"); Phake::verify(Arsse::$user)->authorize($this->user, "subscriptionList");
$this->assertArraySubset($exp[0], Arsse::$db->subscriptionPropertiesGet($this->user, 1)); $this->assertArraySubset($exp[0], Arsse::$db->subscriptionPropertiesGet($this->user, 1));
Phake::verify(Arsse::$user)->authorize($this->user, "subscriptionPropertiesGet"); Phake::verify(Arsse::$user)->authorize($this->user, "subscriptionPropertiesGet");