Skip to content

Commit

Permalink
OXDEV-8213: Adjust exception text and remove test group for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelOxid committed Jun 28, 2024
1 parent d34a036 commit 9e5fcd6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Theme/Exception/ThemesNotFound.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ final class ThemesNotFound extends NotFound
{
public function __construct()
{
parent::__construct(('Theme was not found.'));
parent::__construct(('No themes were found.'));
}
}
2 changes: 0 additions & 2 deletions tests/Codeception/Acceptance/NotAuthorizedAccessCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use OxidEsales\GraphQL\ConfigurationAccess\Tests\Codeception\AcceptanceTester;

/**
* @group theme_list
* @group theme_setting
* @group setting_access
* @group oe_graphql_configuration_access
Expand Down Expand Up @@ -81,7 +80,6 @@ protected function themeGettersDataProvider(): \Generator
yield ['queryName' => 'themeSettingSelect', 'field' => 'name', 'location' => 'theme'];
yield ['queryName' => 'themeSettingCollection', 'field' => 'name', 'location' => 'theme'];
yield ['queryName' => 'themeSettingAssocCollection', 'field' => 'name', 'location' => 'theme'];
yield ['queryName' => 'themeSettingAssocCollection', 'field' => 'name', 'location' => 'theme'];
}

protected function themeMutationsDataProvider(): \Generator
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Theme/Exception/ThemesNotFoundTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ public function testThemeNotFoundException()
$exception = new ThemesNotFound();

$this->assertInstanceOf(ThemesNotFound::class, $exception);
$this->assertSame('Theme was not found.', $exception->getMessage());
$this->assertSame('No themes were found.', $exception->getMessage());
}
}

0 comments on commit 9e5fcd6

Please sign in to comment.