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