diff --git a/tests/phpunit/includes/shell/CommandTest.php b/tests/phpunit/includes/shell/CommandTest.php index 4aef7bb5326..985a8b50eaf 100644 --- a/tests/phpunit/includes/shell/CommandTest.php +++ b/tests/phpunit/includes/shell/CommandTest.php @@ -1,6 +1,7 @@ execute(); $this->assertSame( '', $result->getStdout() ); } + + /** + * @see T257278 + * @group Broken + */ + public function testDisablingRestrictions() { + $command = TestingAccessWrapper::newFromObject( new Command() ); + // As CommandFactory does for the firejail case: + $command->restrict( Shell::RESTRICT_DEFAULT ); + // Disable restrictions + $command->restrict( Shell::RESTRICT_NONE ); + $this->assertSame( 0, $command->restrictions ); + } }