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

PHPspec tests to cover some of Entities #5

Merged
merged 3 commits into from
Aug 23, 2017
Merged

PHPspec tests to cover some of Entities #5

merged 3 commits into from
Aug 23, 2017

Conversation

shinoks
Copy link
Contributor

@shinoks shinoks commented Aug 22, 2017

No description provided.

const TYPE = 'Top Field';
const CODE = 'xs';


Copy link
Member

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

Copy link
Member

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;

Copy link
Member

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.';

Copy link
Member

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;

Copy link
Member

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;

Copy link
Member

Choose a reason for hiding this comment

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

Make spec class final.


$this->setMetaDescription(self::METADESCRIPTION);
$this->getMetaDescription()->shouldReturn('This is what You get.');

Copy link
Member

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 :)

@bitbager bitbager merged commit cd45abc into BitBagCommerce:master Aug 23, 2017
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.

None yet

2 participants