Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed Oct 20, 2021
2 parents 390f614 + 83a8685 commit a53c2c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/LogsActivityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ public function it_will_not_log_casted_attribute_of_the_model_if_attribute_raw_v

public function getActivitylogOptions(): LogOptions
{
return LogOptions::defaults()->logOnly(['name'])->useAttributeRawValues(["name"]);
return LogOptions::defaults()->logOnly(['name'])->useAttributeRawValues(['name']);
}
};

Expand All @@ -525,7 +525,7 @@ public function getActivitylogOptions(): LogOptions

$this->assertInstanceOf(get_class($articleClass), $this->getLastActivity()->subject);
$this->assertEquals($article->id, $this->getLastActivity()->subject->id);
$this->assertNotEquals($article->name, $this->getLastActivity()->properties["attributes"]["name"]);
$this->assertNotEquals($article->name, $this->getLastActivity()->properties['attributes']['name']);
$this->assertEquals('created', $this->getLastActivity()->description);
$this->assertEquals('created', $this->getLastActivity()->event);
}
Expand Down

0 comments on commit a53c2c1

Please sign in to comment.