@@ -50,6 +50,8 @@ public function create_a_new_parcel()
5050 'description ' => 'Test 123 ' ,
5151 'only_recipient ' => true ,
5252 'signature ' => true ,
53+ 'extra_assurance ' => true ,
54+ 'evening_delivery ' => true ,
5355 ],
5456 'pieces ' => [
5557 [
@@ -71,6 +73,8 @@ public function create_a_new_parcel()
7173 $ this ->assertEquals (1 , $ parcel ->pieces ->first ()->weight );
7274 $ this ->assertSame (true , $ parcel ->options ->only_recipient );
7375 $ this ->assertSame (true , $ parcel ->options ->signature );
76+ $ this ->assertSame (true , $ parcel ->options ->extra_assurance );
77+ $ this ->assertSame (true , $ parcel ->options ->evening_delivery );
7478 }
7579
7680 /** @test */
@@ -167,6 +171,46 @@ public function calling_the_only_recipient_method_returns_the_same_parcel_instan
167171 $ this ->assertSame ($ parcel , $ parcel ->onlyRecipient ());
168172 }
169173
174+ /** @test */
175+ public function it_can_set_a_parcel_to_be_extra_assured ()
176+ {
177+ $ parcel = new Parcel ();
178+
179+ $ this ->assertFalse ($ parcel ->options ->extra_assurance );
180+
181+ $ parcel ->extraAssurance ();
182+
183+ $ this ->assertTrue ($ parcel ->options ->extra_assurance );
184+ }
185+
186+ /** @test */
187+ public function it_can_set_a_parcel_to_be_evening_delivery ()
188+ {
189+ $ parcel = new Parcel ();
190+
191+ $ this ->assertFalse ($ parcel ->options ->evening_delivery );
192+
193+ $ parcel ->eveningDelivery ();
194+
195+ $ this ->assertTrue ($ parcel ->options ->evening_delivery );
196+ }
197+
198+ /** @test */
199+ public function calling_the_extra_assurance_method_returns_the_same_parcel_instance ()
200+ {
201+ $ parcel = new Parcel ();
202+
203+ $ this ->assertSame ($ parcel , $ parcel ->extraAssurance ());
204+ }
205+
206+ /** @test */
207+ public function calling_the_evening_delivery_method_returns_the_same_parcel_instance ()
208+ {
209+ $ parcel = new Parcel ();
210+
211+ $ this ->assertSame ($ parcel , $ parcel ->eveningDelivery ());
212+ }
213+
170214 /** @test */
171215 public function it_can_set_a_parcel_to_be_a_mailbox_package ()
172216 {
0 commit comments