1 | <?php |
||||||
2 | |||||||
3 | /* |
||||||
4 | * This file has been created by developers from BitBag. |
||||||
5 | * Feel free to contact us once you face any issues or want to start |
||||||
6 | * another great project. |
||||||
7 | * You can find more information about us on https://bitbag.shop and write us |
||||||
8 | * an email on [email protected]. |
||||||
9 | */ |
||||||
10 | |||||||
11 | declare(strict_types=1); |
||||||
12 | |||||||
13 | namespace spec\BitBag\SyliusMolliePlugin\Entity; |
||||||
14 | |||||||
15 | use BitBag\SyliusMolliePlugin\Entity\Subscription; |
||||||
16 | use BitBag\SyliusMolliePlugin\Entity\SubscriptionInterface; |
||||||
17 | use PhpSpec\ObjectBehavior; |
||||||
18 | use Sylius\Component\Core\Model\OrderInterface; |
||||||
19 | |||||||
20 | class SubscriptionSpec extends ObjectBehavior |
||||||
21 | { |
||||||
22 | function it_is_initializable(): void |
||||||
0 ignored issues
–
show
|
|||||||
23 | { |
||||||
24 | $this->shouldHaveType(Subscription::class); |
||||||
25 | } |
||||||
26 | |||||||
27 | function it_implements_subscription_interface(): void |
||||||
28 | { |
||||||
29 | $this->shouldHaveType(SubscriptionInterface::class); |
||||||
30 | } |
||||||
31 | |||||||
32 | function it_has_null_id_by_default(): void |
||||||
33 | { |
||||||
34 | $this->getId()->shouldReturn(null); |
||||||
0 ignored issues
–
show
The method
getId() does not exist on spec\BitBag\SyliusMollie...Entity\SubscriptionSpec . Since you implemented __call , consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
35 | } |
||||||
36 | |||||||
37 | function it_gets_order(OrderInterface $order): void |
||||||
38 | { |
||||||
39 | $this->setOrder($order); |
||||||
0 ignored issues
–
show
The method
setOrder() does not exist on spec\BitBag\SyliusMollie...Entity\SubscriptionSpec . Since you implemented __call , consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
40 | $this->getOrder()->shouldReturn($order); |
||||||
0 ignored issues
–
show
The method
getOrder() does not exist on spec\BitBag\SyliusMollie...Entity\SubscriptionSpec . Since you implemented __call , consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
41 | } |
||||||
42 | |||||||
43 | function it_gets_state(): void |
||||||
44 | { |
||||||
45 | $this->setState('active'); |
||||||
0 ignored issues
–
show
The method
setState() does not exist on spec\BitBag\SyliusMollie...Entity\SubscriptionSpec . Since you implemented __call , consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
46 | $this->getState()->shouldReturn('active'); |
||||||
0 ignored issues
–
show
The method
getState() does not exist on spec\BitBag\SyliusMollie...Entity\SubscriptionSpec . Since you implemented __call , consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
47 | } |
||||||
48 | |||||||
49 | function it_gets_subscription_id(): void |
||||||
50 | { |
||||||
51 | $this->setSubscriptionId('id_1'); |
||||||
0 ignored issues
–
show
The method
setSubscriptionId() does not exist on spec\BitBag\SyliusMollie...Entity\SubscriptionSpec . Since you implemented __call , consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
52 | $this->getSubscriptionId()->shouldReturn('id_1'); |
||||||
0 ignored issues
–
show
The method
getSubscriptionId() does not exist on spec\BitBag\SyliusMollie...Entity\SubscriptionSpec . Since you implemented __call , consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
53 | } |
||||||
54 | |||||||
55 | function it_gets_customer_id(): void |
||||||
56 | { |
||||||
57 | $this->setCustomerId('id_1'); |
||||||
0 ignored issues
–
show
The method
setCustomerId() does not exist on spec\BitBag\SyliusMollie...Entity\SubscriptionSpec . Since you implemented __call , consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
58 | $this->getCustomerId()->shouldReturn('id_1'); |
||||||
0 ignored issues
–
show
The method
getCustomerId() does not exist on spec\BitBag\SyliusMollie...Entity\SubscriptionSpec . Since you implemented __call , consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
59 | } |
||||||
60 | } |
||||||
61 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.