editOption() 공개 메소드

Changes option with given name using WP-CLI.
public editOption ( string $name, mixed $value )
$name string
$value mixed
예제 #1
0
 /**
  * @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);
 }