-
Notifications
You must be signed in to change notification settings - Fork 158
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
PHPspec tests to cover some of Entities #5
Conversation
src/spec/Entity/BlockSpec.php
Outdated
const TYPE = 'Top Field'; | ||
const CODE = 'xs'; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this blank line
@@ -1,25 +1,29 @@ | |||
<?php | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description and author information must not be removed.
use PhpSpec\ObjectBehavior; | ||
use Sylius\Component\Resource\Model\ResourceInterface; | ||
use Sylius\Component\Core\Model\ImageInterface; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thing here.
const METAKEYWORDS = 'php, js, jquery'; | ||
const METADESCRIPTION = 'This is what You get.'; | ||
const CONTENT = 'Some of the content.'; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once again, one blank line between consts and function declaration :)
use BitBag\CmsPlugin\Entity\PageInterface; | ||
use PhpSpec\ObjectBehavior; | ||
use Sylius\Component\Resource\Model\ResourceInterface; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still it's not final :D
use BitBag\CmsPlugin\Entity\ImageBlock; | ||
use PhpSpec\ObjectBehavior; | ||
use Prophecy\Argument; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make spec class final.
src/spec/Entity/PageSpec.php
Outdated
|
||
$this->setMetaDescription(self::METADESCRIPTION); | ||
$this->getMetaDescription()->shouldReturn('This is what You get.'); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not accept commented code in our projects. Please, remove it :)
No description provided.