From 68d2d5e6372d39442e536217171c4622019b765a Mon Sep 17 00:00:00 2001 From: Mathieu Ferment Date: Wed, 6 Mar 2019 11:05:46 +0100 Subject: [PATCH] Use string value for CSRF token in DeliveryControllerTest to comply with Symfony v3.4.23 --- .../Admin/Sell/Order/DeliveryControllerTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests-legacy/Integration/PrestaShopBundle/Controller/Admin/Sell/Order/DeliveryControllerTest.php b/tests-legacy/Integration/PrestaShopBundle/Controller/Admin/Sell/Order/DeliveryControllerTest.php index 75d1edcc88f8c..99bce1f396e03 100644 --- a/tests-legacy/Integration/PrestaShopBundle/Controller/Admin/Sell/Order/DeliveryControllerTest.php +++ b/tests-legacy/Integration/PrestaShopBundle/Controller/Admin/Sell/Order/DeliveryControllerTest.php @@ -65,7 +65,7 @@ public function testSlipActionWithInvalidData() 'options' => [ 'number' => 'foo', ], - '_token' => $token, + '_token' => $token->getValue(), ], ] ); @@ -90,7 +90,7 @@ public function testSlipActionWithValidData() 'options' => [ 'number' => '100', ], - '_token' => $token, + '_token' => $token->getValue(), ], ] ); @@ -119,7 +119,7 @@ public function testPdfActionWithInvalidData() 'pdf' => [ 'date_from' => 'foo', ], - '_token' => $token, + '_token' => $token->getValue(), ], ] ); @@ -146,7 +146,7 @@ public function testPdfActionWithEmptyData() [ 'slip_pdf_form' => [ 'pdf' => [], - '_token' => $token, + '_token' => $token->getValue(), ], ] );