Skip to content

Commit b9df42b

Browse files
committed
Apparently faked prompts can't run on Windows
1 parent 2d74f49 commit b9df42b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/framework/tests/Feature/Commands/PublishViewsCommandTest.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ public function testInteractiveSelectionOnWindowsSystemsSkipsInteractiveness()
113113

114114
public function testInteractiveSelectionOnUnixSystems()
115115
{
116-
ConsoleHelper::mockWindowsOs(false);
116+
if (windows_os()) {
117+
$this->markTestSkipped('Test is not applicable on Windows systems.');
118+
}
117119

118120
Prompt::fake([
119121
Key::DOWN, Key::SPACE,
@@ -142,7 +144,9 @@ public function testInteractiveSelectionOnUnixSystems()
142144

143145
public function testInteractiveSelectionWithHittingEnterRightAway()
144146
{
145-
ConsoleHelper::mockWindowsOs(false);
147+
if (windows_os()) {
148+
$this->markTestSkipped('Test is not applicable on Windows systems.');
149+
}
146150

147151
Prompt::fake([
148152
Key::ENTER,
@@ -167,7 +171,9 @@ public function testInteractiveSelectionWithHittingEnterRightAway()
167171

168172
public function testInteractiveSelectionWithComplexToggles()
169173
{
170-
ConsoleHelper::mockWindowsOs(false);
174+
if (windows_os()) {
175+
$this->markTestSkipped('Test is not applicable on Windows systems.');
176+
}
171177

172178
Prompt::fake([
173179
// Select "all files"

0 commit comments

Comments
 (0)