model = $objectManager->get(RevokedRepositoryInterface::class); } public function testSave(): void { $id = 169691; $type = UserContextInterface::USER_TYPE_CUSTOMER; $ts = time(); $this->model->saveRevoked(new Revoked($type, $id, $ts)); $found = $this->model->findRevoked($type, $id); $this->assertNotNull($found); $this->assertEquals($ts, $found->getBeforeTimestamp()); } }