editPage( 'Gadget definition:X1', '{}' ); /** @var RevisionRecord $rev */ $rev = $status->getValue()['revision-record']; $revText = $rev->getContent( SlotRecord::MAIN )->serialize(); $handler = $this->getServiceContainer()->getContentHandlerFactory()->getContentHandler( 'GadgetDefinition' ); $this->assertEquals( $handler->makeEmptyContent()->serialize(), $revText ); } }