Skip to content

Commit

Permalink
Remove interface ActionContract
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Oct 25, 2022
1 parent 3112d25 commit 6df3b6c
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 23 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ If you however have written custom code that explicitly references the old names

### Removed
- Removed MetadataItemContract.php (use new abstract class BaseMetadataElement)
- Removed interface ActionContract.php

### Fixed
- for any bug fixes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* @see \Hyde\Framework\Testing\Feature\FindsContentLengthForImageObjectTest
*/
class FindsContentLengthForImageObject implements ActionContract
class FindsContentLengthForImageObject
{
protected Image $image;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @see \Hyde\Framework\Testing\Feature\Actions\GeneratesSidebarTableOfContentsTest
*/
class GeneratesSidebarTableOfContents implements ActionContract
class GeneratesSidebarTableOfContents
{
protected string $markdown;

Expand Down
2 changes: 1 addition & 1 deletion packages/framework/src/Actions/PublishesHomepageView.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* @see \Hyde\Framework\Testing\Feature\Actions\PublishesHomepageViewTest
*/
class PublishesHomepageView implements ActionContract
class PublishesHomepageView
{
public static array $homePages = [
'welcome' => [
Expand Down
2 changes: 1 addition & 1 deletion packages/framework/src/Actions/PublishesHydeViews.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @see \Hyde\Framework\Testing\Feature\Actions\PublishesHomepageViewTest
*/
class PublishesHydeViews implements ActionContract
class PublishesHydeViews
{
public static array $options = [
'layouts' => [
Expand Down
14 changes: 0 additions & 14 deletions packages/framework/src/Contracts/ActionContract.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
*/
class PublishesHomepageViewTest extends TestCase
{
public function test_implements_action_contract()
{
$this->assertInstanceOf(ActionContract::class, new PublishesHomepageView('foo'));
}

public function test_home_pages_array_contains_all_available_home_pages()
{
$array = PublishesHomepageView::$homePages;
Expand Down

0 comments on commit 6df3b6c

Please sign in to comment.