diff --git a/.travis.yml b/.travis.yml index e1c16ba..4388889 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,10 @@ php: - 5.6 - 7.0 - 7.1 + - 7.2 + +sudo: false +dist: trusty env: matrix: diff --git a/Test/Fixture/FramesLanguage4iframesFixture.php b/Test/Fixture/FramesLanguage4iframesFixture.php new file mode 100644 index 0000000..d8a34cd --- /dev/null +++ b/Test/Fixture/FramesLanguage4iframesFixture.php @@ -0,0 +1,80 @@ + + * @link http://www.netcommons.org NetCommons Project + * @license http://www.netcommons.org/license.txt NetCommons License + * @copyright Copyright 2014, NetCommons Project + */ + +App::uses('FramesLanguageFixture', 'Frames.Test/Fixture'); + +/** + * FramesLanguageFixture + * + * @author Shohei Nakajima + * @package NetCommons\Blocks\Test\Fixture + */ +class FramesLanguage4iframesFixture extends FramesLanguageFixture { + +/** + * Model name + * + * @var string + */ + public $name = 'FramesLanguage'; + +/** + * Full Table Name + * + * @var string + */ + public $table = 'frames_languages'; + +/** + * Records + * + * @var array + */ + public $records = array( + //メイン + array( + 'id' => '6', + 'language_id' => '2', + 'frame_id' => '6', + 'name' => 'Test frame main', + 'is_origin' => true, + 'is_translation' => false, + 'is_original_copy' => false, + ), + array( + 'id' => '7', + 'language_id' => '2', + 'frame_id' => '7', + 'name' => 'Test frame main', + 'is_origin' => true, + 'is_translation' => false, + 'is_original_copy' => false, + ), + array( + 'id' => '8', + 'language_id' => '2', + 'frame_id' => '8', + 'name' => 'Test frame main', + 'is_origin' => true, + 'is_translation' => false, + 'is_original_copy' => false, + ), + ); + +/** + * Initialize the fixture. + * + * @return void + */ + public function init() { + parent::init(); + } + +} diff --git a/TestSuite/IframesControllerTestCase.php b/TestSuite/IframesControllerTestCase.php index ce8cb31..1dbc9fb 100644 --- a/TestSuite/IframesControllerTestCase.php +++ b/TestSuite/IframesControllerTestCase.php @@ -32,6 +32,7 @@ abstract class IframesControllerTestCase extends NetCommonsControllerTestCase { 'plugin.iframes.iframe_frame_setting', 'plugin.iframes.frame4iframes', 'plugin.iframes.frame_public_language4iframes', + 'plugin.iframes.frames_language4iframes', ); /** diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 905482c..2b51739 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -14,6 +14,5 @@ -