| @@ 110-116 (lines=7) @@ | ||
| 107 | /** |
|
| 108 | * @test |
|
| 109 | */ |
|
| 110 | public function getCustomerShouldReturnConfiguredCustomer() |
|
| 111 | { |
|
| 112 | $customer = $this->getMock(Customer::class, [], [], '', false); |
|
| 113 | $this->request->setCustomer($customer); |
|
| 114 | ||
| 115 | $this->assertSame($customer, $this->request->getCustomer()); |
|
| 116 | } |
|
| 117 | ||
| 118 | /** |
|
| 119 | * @test |
|
| @@ 121-127 (lines=7) @@ | ||
| 118 | /** |
|
| 119 | * @test |
|
| 120 | */ |
|
| 121 | public function setCustomerToShouldChangeTheAttribute() |
|
| 122 | { |
|
| 123 | $customer = $this->getMock(Customer::class, [], [], '', false); |
|
| 124 | $this->request->setCustomer($customer); |
|
| 125 | ||
| 126 | $this->assertAttributeSame($customer, 'customer', $this->request); |
|
| 127 | } |
|
| 128 | ||
| 129 | public function testSerializeShouldXMLFull() |
|
| 130 | { |
|