Skip to content

Commit

Permalink
Changes for PHP 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed May 22, 2018
1 parent 3f138ee commit 1b57bc5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/privacy_provider_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,12 @@ public function test_export_user_preferences() {

$this->assertTrue($writer->has_any_data());

$prefs = $writer->get_user_preferences('format_topcoll');
$prefs = (array) $writer->get_user_preferences('format_topcoll');

$this->assertCount(1, (array) $prefs);
$this->assertCount(1, $prefs);

$this->assertEquals('FAB', ((array)$prefs)['topcoll_toggle_'.$this->course->id]->value);
$toggle = $prefs['topcoll_toggle_'.$this->course->id];
$this->assertEquals('FAB', $toggle->value);

$description = get_string('privacy:request:preference:toggle', 'format_topcoll', (object) [
'name' => $this->course->id,
Expand Down

0 comments on commit 1b57bc5

Please sign in to comment.