public function test_update_should_throw_DuplicateNameException() { $setProfileNameColumnUniqueUpdater = new Update03DefaultProfileSupport(new SetupContext(self::ANY_VERSION, self::ANY_VERSION, self::ANY_VERSION), $this->getDbalMockThrowsIntegrityConstraintException(), $this->getSnippetManagerMock()); $this->expectException(DuplicateNameException::class); $setProfileNameColumnUniqueUpdater->update(); }