Permalink
Browse files

Fix CS in tests (#364)

  • Loading branch information...
TVke authored and freekmurze committed Apr 3, 2018
1 parent 13e5ea8 commit 8dc0d56ecc53f8a87ca0dad8ba97663e1205f2f1
Showing with 17 additions and 17 deletions.
  1. +1 −1 src/ActivityLogger.php
  2. +1 −1 tests/CleanActivitylogCommandTest.php
  3. +14 −14 tests/DetectsChangesTest.php
  4. +1 −1 tests/LogsActivityTest.php
View
@@ -97,7 +97,7 @@ public function withProperties($properties)
/**
* @param string $key
* @param mixed $value
* @param mixed $value
*
* @return $this
*/
@@ -23,7 +23,7 @@ public function it_can_clean_the_activity_log()
collect(range(1, 60))->each(function (int $index) {
Activity::create([
'description' => "item {$index}",
'created_at' => Carbon::now()->subDays($index)->startOfDay(),
'created_at' => Carbon::now()->subDays($index)->startOfDay(),
]);
});
@@ -11,7 +11,7 @@
class DetectsChangesTest extends TestCase
{
/** @var \Spatie\Activitylog\Test\Article|\Spatie\Activitylog\Traits\LogsActivity */
/** @var \Spatie\Activitylog\Test\Models\Article|\Spatie\Activitylog\Traits\LogsActivity */
protected $article;
public function setUp()
@@ -182,7 +182,7 @@ public function it_can_store_dirty_changes_for_swapping_values()
'name' => $originalText,
'text' => $originalName,
],
'old' => [
'old' => [
'name' => $originalName,
'text' => $originalText,
],
@@ -218,15 +218,15 @@ public function it_can_store_the_changes_when_updating_a_related_model()
$expectedChanges = [
'attributes' => [
'name' => 'name',
'text' => 'text',
'user.name' => 'another name',
],
'name' => 'name',
'text' => 'text',
'user.name' => 'another name',
],
'old' => [
'name' => 'name',
'text' => 'text',
'user.name' => 'a name',
],
'name' => 'name',
'text' => 'text',
'user.name' => 'a name',
],
];
$this->assertEquals($expectedChanges, $this->getLastActivity()->changes()->toArray());
@@ -261,11 +261,11 @@ public function it_can_store_the_dirty_changes_when_updating_a_related_model()
$expectedChanges = [
'attributes' => [
'user.name' => 'another name',
],
'user.name' => 'another name',
],
'old' => [
'user.name' => 'a name',
],
'user.name' => 'a name',
],
];
$this->assertEquals($expectedChanges, $this->getLastActivity()->changes()->toArray());
@@ -9,7 +9,7 @@
class LogsActivityTest extends TestCase
{
/** @var \Spatie\Activitylog\Test\Article|\Spatie\Activitylog\Traits\LogsActivity */
/** @var \Spatie\Activitylog\Test\Models\Article|\Spatie\Activitylog\Traits\LogsActivity */
protected $article;
public function setUp()

0 comments on commit 8dc0d56

Please sign in to comment.