示例#1
0
 /**
  * Constructor. Sets up the properties.
  *
  * @param Updater  $updater  Updater.
  * @param \wpdb    $wpdb     Database object.
  * @param Taxonomy $taxonomy Taxonomy model.
  */
 public function __construct(Updater $updater, \wpdb $wpdb, Taxonomy $taxonomy)
 {
     $this->version_option_name = $updater->get_option_name();
     $this->wpdb = $wpdb;
     $this->taxonomy = $taxonomy->get_name();
 }
示例#2
0
 /**
  * @covers tfrommen\MetaTaxonomy\Update\Updater::get_option_name
  *
  * @return void
  */
 public function test_get_option_name()
 {
     $testee = new Testee();
     $this->assertSame('meta_taxonomy_version', $testee->get_option_name());
 }