This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit backupGlobals="false" | |
backupStaticAttributes="false" | |
bootstrap="vendor/autoload.php" | |
colors="true" | |
convertErrorsToExceptions="true" | |
convertNoticesToExceptions="true" | |
convertWarningsToExceptions="true" | |
processIsolation="false" | |
stopOnFailure="false" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author David Wickström <[email protected]> | |
*/ | |
trait AssertState | |
{ | |
/** | |
* Access any value off any object given a property with any visibility mode | |
* | |
* @param $field |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require-dev": { | |
"phpunit/phpunit": "~4.5", | |
"MageTest/Manager": "~1.0" | |
}, | |
"repositories": [ | |
{ | |
"type": "vcs", | |
"url": "[email protected]:dwickstrom/Manager.git" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DB_USER=root | |
DB_HOST=localhost | |
DB_PASSWORD=topsecret | |
DB_NAME=foo_bar_test | |
FRONT_NAME=admin | |
SESSION_SAVE=db | |
MAGENTO_ROOT=vendor/magento/core | |
HOST_NAME=localhost:8787 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MageEnvironmentTrait | |
{ | |
public function setEnvironment($env = null) | |
{ | |
if (!$env) { | |
$env = Mage_Core_Model_App_Area::AREA_FRONTEND; | |
} | |
Mage::getSingleton('core/session', array('name' => $env)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Mage; | |
trait HandleAttributes | |
{ | |
/** | |
* @param Mage_Catalog_Model_Product $simple | |
* @param Mage_Catalog_Model_Product $configurable | |
* @param array $attributeIds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os.path import join, dirname | |
from dotenv import load_dotenv | |
dotenv_path = join(dirname(__file__), '.env') | |
load_dotenv(dotenv_path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
from wsgiref import simple_server | |
from selenium import webdriver | |
from my_application import model | |
from my_application import web_app | |
def before_all(context): | |
context.server = simple_server.WSGIServer(('', 8000)) | |
context.server.set_app(web_app.main(environment='test')) | |
context.thread = threading.Thread(target=context.server.serve_forever) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get option value, unless we are in debug mode && that key is set in the environment | |
*/ | |
function get_environment_variable($varname) { | |
if (!is_string($varname)) throw new Exception('Strings only.'); | |
if (getenv('WP_DEBUG')) { | |
return (getenv(strtoupper($varname))) ? : get_option($varname); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get -y update | |
apt-get -y upgrade | |
apt-get -y --force-yes install make unzip g++ libssl-dev git xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps clang libdbus-1-dev libgtk2.0-dev libnotify-dev libgnome-keyring-dev libgconf2-dev libasound2-dev libcap-dev libcups2-dev libxtst-dev libxss1 libnss3-dev gcc-multilib g++-multilib | |
npm -f init | |
npm i -S nightmare | |
xvfb-run nodejs index.js |
OlderNewer