Skip to content

Commit 6e56d56

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 2528f6a + 83a19fb commit 6e56d56

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/Support/AssertHasActionLogs.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ trait AssertHasActionLogs
1111
{
1212
public function assertHasTheseActionLogs(Model $item, array $statuses)
1313
{
14-
Assert::assertEquals($statuses, $item->assetlog()->orderBy('id')->pluck('action_type')->toArray(), "Failed asserting that action logs match");
14+
//note we have to do a 'reorder()' here because there is an implicit "order_by created_at" baked in to the relationship
15+
Assert::assertEquals($statuses, $item->assetlog()->reorder('id')->pluck('action_type')->toArray(), "Failed asserting that action logs match");
1516
}
1617

1718
}

tests/Unit/LdapTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ public function testFreshTLSFile()
228228
$this->settings->enableLdap()->set(['ldap_client_tls_cert' => 'SAMPLE CERT TEXT']);
229229
$client_side_cert_path = Setting::get_client_side_cert_path();
230230
file_put_contents($client_side_cert_path, 'WEIRDLY UPDATED CERT FILE');
231+
clearstatcache();
231232
//the system should respect our cache-file, since the settings haven't been updated
232233
$possibly_recached_cert_file = Setting::get_client_side_cert_path(); //this should *NOT* re-cache from the Settings
233234
$this->assertStringEqualsFile($possibly_recached_cert_file, 'WEIRDLY UPDATED CERT FILE');

0 commit comments

Comments
 (0)