| Total Complexity | 5 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | final class ChannelDepositSpec extends ObjectBehavior |
||
| 13 | { |
||
| 14 | function it_is_channel_deposit(): void |
||
|
|
|||
| 15 | { |
||
| 16 | $this->shouldHaveType(ChannelDeposit::class); |
||
| 17 | } |
||
| 18 | |||
| 19 | function it_implements_channel_deposit_interface(): void |
||
| 20 | { |
||
| 21 | $this->shouldImplement(ChannelDepositInterface::class); |
||
| 22 | } |
||
| 23 | |||
| 24 | function it_has_price(): void |
||
| 25 | { |
||
| 26 | $this->getPrice()->shouldReturn(null); |
||
| 27 | $this->setPrice(25); |
||
| 28 | $this->getPrice()->shouldReturn(25); |
||
| 29 | } |
||
| 30 | |||
| 31 | function it_has_product_variant(ProductVariantInterface $productVariant): void |
||
| 36 | } |
||
| 37 | |||
| 38 | function is_has_channel_code(): void |
||
| 39 | { |
||
| 46 |
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.