PHP code example of ixis / codeception-drupal-variable
1. Go to this page and download the library: Download ixis/codeception-drupal-variable library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ixis / codeception-drupal-variable example snippets
// Assert that the target site has variable "clean_url" set to 1
$I->seeVariable("clean_url", 1);
// Set a variable.
$I->haveVariable("clean_url", 0);
// Delete a variable.
$I->dontHaveVariable("clean_url");
// Retrieve a variable value.
$value = $I->getVariable("clean_url");