Release 2.12 (#4609)

This commit is contained in:
Kevin Papst
2024-02-07 23:47:25 +01:00
committed by GitHub
parent 7abe787778
commit 85a16a9363
394 changed files with 1189 additions and 6735 deletions

View File

@@ -69,7 +69,7 @@ class CustomerServiceTest extends TestCase
return new CustomerService($repository, $configuration, $validator, $dispatcher);
}
public function testCannotSavePersistedCustomerAsNew()
public function testCannotSavePersistedCustomerAsNew(): void
{
$Customer = $this->createMock(Customer::class);
$Customer->expects($this->once())->method('getId')->willReturn(1);
@@ -82,7 +82,7 @@ class CustomerServiceTest extends TestCase
$sut->saveNewCustomer($Customer);
}
public function testSaveNewCustomerHasValidationError()
public function testSaveNewCustomerHasValidationError(): void
{
$constraints = new ConstraintViolationList();
$constraints->add(new ConstraintViolation('toooo many tests', 'abc.def', [], '$root', 'begin', 4, null, null, null, '$cause'));
@@ -98,7 +98,7 @@ class CustomerServiceTest extends TestCase
$sut->saveNewCustomer(new Customer('foo'));
}
public function testUpdateDispatchesEvents()
public function testUpdateDispatchesEvents(): void
{
$Customer = $this->createMock(Customer::class);
$Customer->method('getId')->willReturn(1);
@@ -121,7 +121,7 @@ class CustomerServiceTest extends TestCase
$sut->updateCustomer($Customer);
}
public function testCreateNewCustomerDispatchesEvents()
public function testCreateNewCustomerDispatchesEvents(): void
{
$dispatcher = $this->createMock(EventDispatcherInterface::class);
$dispatcher->expects($this->exactly(2))->method('dispatch')->willReturnCallback(function ($event) {
@@ -146,7 +146,7 @@ class CustomerServiceTest extends TestCase
self::assertEquals('RUB', $customer->getCurrency());
}
public function testSaveNewCustomerDispatchesEvents()
public function testSaveNewCustomerDispatchesEvents(): void
{
$dispatcher = $this->createMock(EventDispatcherInterface::class);
$dispatcher->expects($this->exactly(2))->method('dispatch')->willReturnCallback(function ($event) {