getMessage()); self::assertEquals($status->refusalFor([DiviFeature::PresetWrite]), $locked->toError()); $payload = self::assertToolError($locked->toError(), 'divi_incompatible'); self::assertSame(['preset-write'], array_column($payload['features'], 'id')); } public function testALockWithoutFeaturesIsAProgrammingError(): void { $this->expectException(LogicException::class); $this->expectExceptionMessage('a Divi lock needs the locked features'); new DiviLocked(ReleaseMatrices::uniform(ReleaseState::Untested), []); } }