Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Avoid Attempted to call an undefined method named "getName" with tests #37

Closed
wants to merge 3 commits into from

Conversation

StephanePate
Copy link
Contributor

with tests of toString update

$this->assertSame('GetNameNull', $admin->toString($s));

$s = new DummyNoGetName();
$this->assertSame('NoGetName', $admin->toString($s));
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use a data provider. Some will probably also ask you to move dummy classes to a fixtures namespace (what do you think @sonata-project/contributors ? ).

@greg0ire
Copy link
Contributor

greg0ire commented Jun 6, 2016

Also @stphnpt , there was no need to close #36 : you can just force push new commits to the same branch, and your PR will update.

{
public function testToString()
{
$admin = new BlockAdmin('sonata.dashboard.admin.block', 'DashboardBundle\Entity\BaseBlock', 'SonataDashboardBundle:BlockAdmin');
Copy link
Member

Choose a reason for hiding this comment

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

please line break this

@OskarStark
Copy link
Member

LGTM 👍

@OskarStark
Copy link
Member

@soullivaneuh @greg0ire do we have no Style CI check here? Oo

@soullivaneuh
Copy link
Member

@OskarStark This project is not already on dev-kit.

Waiting this: #31

@soullivaneuh
Copy link
Member

According to the new Sonata version management and next major release plan, this project has been refactored regarding branching and versioning.

If you see this message, your PR concerns a patch or a minor release and is not targeting the right branch.

So I'm closing this one, but don't see it as a refusal. If you think your work is still relevant and want to continue, feel free to reopen it on the right branch (e.g. the default one).

Regards.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants