Example #1
0
 /**
  * @param AcceptanceTester $I
  */
 public function testUpdate(AcceptanceTester $I)
 {
     $I->wantTo('ensure that update taxonomy works');
     $updateTaxonomy = UpdatePage::openBy($I);
     $I->see('Update Taxonomy: Tag', 'h1');
     $I->amGoingTo('submit update taxonomy form with correct data');
     $updateTaxonomy->submit(['singular_name' => 'New Taxonomy', 'plural_name' => 'New Taxonomies']);
     $I->expect('taxonomy updated');
     $I->see('View Taxonomy: New Taxonomy');
     $I->seeElement('#term-parent');
     Taxonomy::findOne(2)->update(['hierarchical' => '0', 'menu_builder' => '0', 'singular_name' => 'Tag', 'plural_name' => 'Tags']);
 }
Example #2
0
 /**
  * @param AcceptanceTester $I
  */
 public function testUpdate(AcceptanceTester $I)
 {
     $I->wantTo('ensure that update taxonomy works');
     $updateTaxonomy = UpdatePage::openBy($I);
     $I->see('Update Taxonomy: Tag', 'h1');
     $I->amGoingTo('submit update taxonomy form with correct data');
     $updateTaxonomy->submit(['taxonomy_sn' => 'New Taxonomy']);
     $I->expect('taxonomy updated');
     $I->see('View Taxonomy: New Taxonomy');
     $I->seeElement('#term-term_parent');
     Taxonomy::findOne(2)->update(['taxonomy_hierarchical' => '0', 'taxonomy_smb' => '0']);
 }