Prevent double flush when editing domain redirects

This commit is contained in:
Alejandro Celaya
2021-08-03 09:55:21 +02:00
parent b78660c685
commit 6860855c71
2 changed files with 31 additions and 16 deletions

View File

@@ -197,7 +197,7 @@ class DomainServiceTest extends TestCase
self::assertEquals('baz.com', $result->invalidShortUrlRedirect());
$getRepo->shouldHaveBeenCalledOnce();
$persist->shouldHaveBeenCalledOnce();
$flush->shouldHaveBeenCalledTimes(2);
$flush->shouldHaveBeenCalledOnce();
}
public function provideFoundDomains(): iterable