<?php /* Story: The site sends data with every purchace to the motherShip In order to keep track of purchase information As the system I should send data with every purchace to the motherShip */ $I = /*am a */ new SC5050\SC5050Tester($scenario); $I->wantTo("Confirm Feature: The site sends data with every purchace to the motherShip"); $I->fail('This test has not been implemented yet.'); /* Scenario: When a user has purchased a ticket Then the information is sent to $motherShip sendInfoToMotherShip(); */ //global $productPermalink; global $CRG_homePageURL; $productPage = $CRG_homePageURL . $productPermalink; //$I->purchaseRaffleTicket($productPage); //$I->confirmPurchaseInfoHasBeenReceivedOnTheMotherShip(); /* Scenario: When a user has purchased a ticket Then they receive an email with the ticket info */ //$I->confirmEmailHasBeenReceived();
<?php /* Feature: Admins can create, edit, and delete raffles In order have raffle tickets to sell As as admin I want to do CRUD activities in the dashbaord */ $I = /*am a */ new SC5050\SC5050Tester($scenario); //$I->fail('This test has not been implemented yet.'); //$I = new AcceptanceTester($scenario); //$I->wantTo("Confirm Feature: Admins can create, edit, and delete raffles"); /* Scenario: When an admin visits the dashboard Then he should see a custom item called "Raffles" */ //$I->loginWordpressAs('admin'); //Compile the dashboard's URL. Set in _bootstrap.php: global $CRG_homePageURL; $dashBoardURL = $CRG_homePageURL . "/wp-admin/index.php"; $I->amOnUrl($dashBoardURL); //$I->see('Raffles'); //$I = /*am a */ new SC5050\SC5050Tester($scenario); $I->wantTo("Confirm Feature: Admins can create, edit, and delete raffles"); $I->amOnUrl($dashBoardURL); /*
<?php $I = /*am a */ new SC5050\SC5050Tester($scenario); $I->wantTo("purchase a ticket"); global $productPermalink; global $CRG_homePageURL; $productPage = $CRG_homePageURL . $productPermalink; $I->purchaseRaffleTicket($productPage);
<?php /* Feature: In order As as I want to */ $I = /*am a */ new SC5050\SC5050Tester($scenario); $I->wantTo("make sure WOO default pages are there"); $I->confirmWoocommerceDefaultPagesExist();