Skip to content

Instantly share code, notes, and snippets.

@ryanirelan
Created July 9, 2019 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ryanirelan/31dda0c756ca12a2ebb222cc5d83ff0b to your computer and use it in GitHub Desktop.
Save ryanirelan/31dda0c756ca12a2ebb222cc5d83ff0b to your computer and use it in GitHub Desktop.
<?php
use craft\test\TestSetup;
ini_set('date.timezone', 'UTC');
// Use the current installation of Craft
define('CRAFT_STORAGE_PATH', __DIR__ . '/_craft/storage');
define('CRAFT_TEMPLATES_PATH', __DIR__ . '/_craft/templates');
define('CRAFT_CONFIG_PATH', __DIR__ . '/_craft/config');
define('CRAFT_MIGRATIONS_PATH', __DIR__ . '/_craft/migrations');
define('CRAFT_TRANSLATIONS_PATH', __DIR__ . '/_craft/translations');
define('CRAFT_VENDOR_PATH', dirname(__DIR__).'/vendor');
TestSetup::configureCraft();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment