Skip to content

Instantly share code, notes, and snippets.

@chitoku-k chitoku-k/LampagerPaginatorTest.php Secret
Last active Dec 21, 2017

Embed
What would you like to do?
cakephp2-plugin-test
after_success:
- cd ../cakephp/app/Plugin/$PLUGIN_NAME
- mkdir -p build/logs
- mv ../../clover.xml build/logs
- travis_retry $TRAVIS_BUILD_DIR/vendor/bin/coveralls
before_script:
- git clone https://github.com/FriendsOfCake/travis.git --depth 1 ../travis
- ../travis/before_script.sh
- composer global remove "phpunit/phpunit"
- composer global require "phpunit/phpunit:<6.0.0"
- echo "require_once '$PWD/vendor/autoload.php';" >> ../cakephp/app/Config/bootstrap.php
env:
global:
- PLUGIN_NAME=Lampager
- CODECOVERAGE=1
- CAKE_REF=2.x
- DB=mysql
<?php
// モデルの LampagerPaginator クラスを読み込む例
App::uses('LampagerPaginator', 'Lampager.Model');
class LampagerPaginatorTest extends CakeTestCase
{
public $fixtures = [
// プラグインのフィクスチャーを参照する例
'plugin.Lampager.Post',
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.