| Total Complexity | 8 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class VendorTranslationSpec extends ObjectBehavior |
||
| 13 | { |
||
| 14 | function it_is_initializable() |
||
|
|
|||
| 15 | { |
||
| 16 | $this->shouldHaveType(VendorTranslation::class); |
||
| 17 | } |
||
| 18 | |||
| 19 | function it_extends_abstract_translation() |
||
| 22 | } |
||
| 23 | |||
| 24 | function it_implements_translation_interface(): void |
||
| 25 | { |
||
| 26 | $this->shouldImplement(TranslationInterface::class); |
||
| 27 | } |
||
| 28 | |||
| 29 | function it_implements_vendor_translation_interface(): void |
||
| 30 | { |
||
| 31 | $this->shouldImplement(VendorTranslationInterface::class); |
||
| 32 | } |
||
| 33 | |||
| 34 | function it_implements_resource_interface(): void |
||
| 35 | { |
||
| 36 | $this->shouldImplement(ResourceInterface::class); |
||
| 37 | } |
||
| 38 | |||
| 39 | function it_has_no_id_by_default(): void |
||
| 40 | { |
||
| 41 | $this->getId()->shouldReturn(null); |
||
| 42 | } |
||
| 43 | |||
| 44 | function it_has_no_description_by_default(): void |
||
| 47 | } |
||
| 48 | |||
| 49 | function it_allows_access_via_properties(): void |
||
| 50 | { |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
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.