fix: ensure pickups node exists in api payload
This commit is contained in:
1 parent
a1d43b9c5a
commit
370bc9fc5f
2 files changed
+9
-2
No files matched your search
@@ -138,7 +138,8 @@ class BookingDataProcessorTest extends TestCase
|
||||
|
||||
$result = $this->processor->createUpdateRequestPayload($formData);
|
||||
|
||||
$this->assertArrayNotHasKey('zustiege', $result);
|
||||
$this->assertArrayHasKey('zustiege', $result);
|
||||
$this->assertSame([], $result['zustiege']);
|
||||
}
|
||||
|
||||
public function testUnusedServicesAreRemoved(): void
|
||||
@@ -241,7 +242,8 @@ class BookingDataProcessorTest extends TestCase
|
||||
|
||||
$result = $this->processor->createUpdateRequestPayload($formData);
|
||||
|
||||
$this->assertArrayNotHasKey('zustiege', $result);
|
||||
$this->assertArrayHasKey('zustiege', $result);
|
||||
$this->assertSame([], $result['zustiege']);
|
||||
}
|
||||
|
||||
private function createCompleteFormData(): BookingDto
|
||||
|
||||
Reference in new issue
Block a user