Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Apr 28, 2024
1 parent c310246 commit b0a5c3d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/Livewire/Forms/Album/PropertiesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ public function testSetCopyright(): void
->assertOk()
->assertDispatched('notify', self::notifySuccess());

$copyright = Album::findOrFail($this->album1->id)->copyright;
$this->assertEquals('something', $copyright);
/** @var Album $album */
$album = Album::findOrFail($this->album1->id);
$this->assertEquals('something', $album->copyright);

Livewire::actingAs($this->admin)->test(Properties::class, ['album' => $this->album1])
->assertOk()
Expand All @@ -63,7 +64,8 @@ public function testSetCopyright(): void
->assertOk()
->assertDispatched('notify', self::notifySuccess());

$copyright = Album::findOrFail($this->album1->id)->copyright;
$this->assertEquals(null, $copyright);
/** @var Album $album */
$album = Album::findOrFail($this->album1->id);
$this->assertEquals(null, $album->copyright);
}
}

0 comments on commit b0a5c3d

Please sign in to comment.