Changes option with given name using WP-CLI.
public editOption ( string $name, mixed $value ) | ||
$name | string | |
$value | mixed |
/** * @test * */ public function sitesAreNotMergedIfThereIsConflict() { $cloneWpAutomation = new WpAutomation(self::$cloneSiteConfig, self::$testConfig->wpCliVersion); $cloneWpAutomation->editOption('blogname', 'Blogname from clone - conflict'); $wpAutomation = new WpAutomation(self::$siteConfig, self::$testConfig->wpCliVersion); $wpAutomation->editOption('blogname', 'Blogname from original - conflict'); $output = $wpAutomation->runWpCliCommand('vp', 'pull', ['from' => self::$cloneSiteConfig->name]); $this->assertContains("Pull aborted", $output); }