1 | <?php |
||
19 | final class ChannelSpec extends ObjectBehavior |
||
20 | { |
||
21 | function it_implements_channel_interface(): void |
||
22 | { |
||
23 | $this->shouldImplement(ChannelInterface::class); |
||
24 | } |
||
25 | |||
26 | function it_has_no_id_by_default(): void |
||
30 | |||
31 | function it_has_no_code_by_default(): void |
||
35 | |||
36 | function its_code_is_mutable(): void |
||
41 | |||
42 | function it_is_unnamed_by_default(): void |
||
46 | |||
47 | function its_name_is_mutable(): void |
||
48 | { |
||
49 | $this->setName('Mobile Store'); |
||
50 | $this->getName()->shouldReturn('Mobile Store'); |
||
51 | } |
||
52 | |||
53 | function it_has_no_color_by_default(): void |
||
57 | |||
58 | function its_color_is_mutable(): void |
||
63 | |||
64 | function it_is_enabled_by_default(): void |
||
68 | |||
69 | function it_can_be_disabled(): void |
||
74 | |||
75 | function it_initializes_creation_date_by_default(): void |
||
79 | |||
80 | function its_creation_date_is_mutable(\DateTime $date): void |
||
85 | |||
86 | function it_has_no_last_update_date_by_default(): void |
||
90 | |||
91 | function its_last_update_date_is_mutable(\DateTime $date): void |
||
96 | } |
||
97 |