assertStatusOK( $status ); $this->assertStatusGood( $status ); $this->assertEmpty( $status->getErrors() ); } public function testBlock() { $status = PermissionStatus::newEmpty(); $this->assertNull( $status->getBlock() ); $block = $this->createMock( Block::class ); $status->setBlock( $block ); $this->assertSame( $block, $status->getBlock() ); } }