Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT Update test to reflect changes to template/model layers #1260

Merged

Conversation

GuySartorelli
Copy link
Member

Comment on lines -81 to +82
$this->assertEquals("DNADesign\Elemental\Tests\Src\TestPage", $ownerpage1);
$this->assertEquals("DNADesign\Elemental\Tests\Src\TestPage", $ownerpage2);
$this->assertInstanceOf(TestPage::class, $ownerpage1);
$this->assertInstanceOf(TestPage::class, $ownerpage2);
Copy link
Member Author

@GuySartorelli GuySartorelli Oct 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was always just a bad test that relied on ModelData::__toString() returning the class name.
This change isn't necessary anymore since I had to revert the change to what that method returns, but I think this change is still objectively good and worth doing. Check the class to check the class, ya know?

@GuySartorelli GuySartorelli force-pushed the pulls/6/refactor-template-layer branch from ad9f36b to 5ba1514 Compare October 22, 2024 00:11
@GuySartorelli GuySartorelli marked this pull request as ready for review October 23, 2024 03:00
@emteknetnz emteknetnz merged commit eadd5ad into silverstripe:6 Oct 30, 2024
5 of 17 checks passed
@emteknetnz emteknetnz deleted the pulls/6/refactor-template-layer branch October 30, 2024 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants