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 TodoItemTest extends TestCase { | |
public function testCreateTodoItem() | |
{ | |
// Visit create action and get crawler instance | |
$crawler = $this->client->request('GET', '/todo-items/create'); | |
// Check that request returned 200 |
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 ConversationsController extends BaseController { | |
public function show($user_id, $conversation_id) | |
{ | |
var_dump($user_id); | |
var_dump($conversation_id); | |
} |
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 | |
return array( | |
// Each string will be passed to the shell as a command. | |
'commands' => array( | |
'composer install', | |
), | |
// Defaults to true and is not required. | |
// If set to false, installing and update can take a long time | |
// and may seem like it's 'hanging'. | |
// 'async' => 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
<?php | |
namespace WpShipper\Handlers\Commands; | |
use Illuminate\Foundation\Application; | |
use League\Tactician\Command; | |
use League\Tactician\Handler\Locator\HandlerLocator; | |
class LaravelHandlerLocator implements HandlerLocator | |
{ |
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
machine: | |
timezone: | |
Europe/Copenhagen | |
php: | |
version: 5.3.3 | |
# This will be added to the `/etc/hosts` file | |
hosts: | |
wppusher-plugin.dev: 127.0.0.1 |
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
Listen 8080 | |
<VirtualHost *:8080> | |
LoadModule php5_module /home/ubuntu/.phpenv/versions/5.3.3/libexec/apache2/libphp5.so | |
DocumentRoot /home/ubuntu/wppusher-plugin/wordpress | |
ServerName wppusher-plugin.dev | |
<FilesMatch \.php$> | |
SetHandler application/x-httpd-php | |
</FilesMatch> |
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 Illuminate\Foundation\Testing\DatabaseMigrations; | |
use WpShop\Product; | |
class ProductOverviewTest extends TestCase | |
{ | |
use DatabaseMigrations; | |
/** |
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 AppServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Bootstrap any application services. | |
* | |
* @return void | |
*/ | |
public function boot() |
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
$ docker-compose up -d | |
Creating network "wppusherplugin_default" with the default driver | |
Creating wppusherplugin_db_1 | |
Creating wppusherplugin_wordpress_1 | |
$ docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
ecec64717d29 wordpress:php5.6-apache "docker-entrypoint.sh" 5 seconds ago Up 2 seconds 0.0.0.0:80->80/tcp wppusherplugin_wordpress_1 | |
54ed735f15e4 mysql:5.7 "docker-entrypoint.sh" 7 seconds ago Up 4 seconds 3306/tcp wppusherplugin_db_1 |
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
version: '2' | |
services: | |
db: | |
image: mysql:5.7 | |
volumes: | |
- wp_pusher_db_data:/var/lib/mysql | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: wordpress |
OlderNewer