Skip to content

Commit b1014b5

Browse files
committed
Fix test case
1 parent 100916b commit b1014b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/src/Feature/Livewire/ContentVersionHistoryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ function getLivewireParams($content): array
107107

108108
Livewire::test('inspirecms::content-version-history', getLivewireParams($content))
109109
->assertCountTableRecords(2)
110-
->assertTableActionHidden('rollbackToVersion', $firstVersion);
110+
->assertTableActionDisabled('rollbackToVersion', $firstVersion);
111111

112112
$this->mock(LicenseManager::class, function (MockInterface $mock) {
113113
$mock->shouldReceive('canRollbackVersion')->andReturn(true);
114114
});
115115
expect(app(LicenseManager::class)->canRollbackVersion())->toBe(true);
116116

117117
Livewire::test('inspirecms::content-version-history', getLivewireParams($content))
118-
->assertTableActionHidden('rollbackToVersion', $latestVersion)
118+
->assertTableActionDisabled('rollbackToVersion', $latestVersion)
119119
->callTableAction('rollbackToVersion', $firstVersion)
120120
->assertHasNoTableActionErrors();
121121

0 commit comments

Comments
 (0)