Contents handed to DiviSaver::save(). */ protected array $saved = []; protected DiviWriter $writer; protected function setUp(): void { parent::setUp(); $this->original = DiviFixtures::markup('synthetic-basic.html'); $this->post = DiviFixtures::givenPost($this->original); Functions\when('get_preview_post_link')->justReturn('https://kunde.test/?page_id=7&preview=true'); $this->writer = DiviWriterFixture::writer($this->saved); } protected function treeRev(): string { return Rev::of($this->original); } protected function insert(): DiviInsertAbility { return new DiviInsertAbility($this->writer); } protected function update(): DiviUpdateAbility { return new DiviUpdateAbility($this->writer); } protected function move(): DiviMoveAbility { return new DiviMoveAbility($this->writer); } protected function delete(): DiviDeleteAbility { return new DiviDeleteAbility($this->writer); } protected function duplicate(): DiviDuplicateNodeAbility { return new DiviDuplicateNodeAbility($this->writer); } }