Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ユニットテストが実行できないのを修正 #157

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
php-version: [7.3, 7.4]
php-version: [7.4]

services:
mysql:
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ RUN apt-get update \
&& apt-get -y install mariadb-client; \
rm -rf /var/lib/apt/lists/*; \
pecl install xdebug \
&& echo 'zend_extension=xdebug.so' > /usr/local/etc/php/conf.d/xdebug.ini
&& echo 'zend_extension=xdebug.so' > /usr/local/etc/php/conf.d/xdebug.ini \
&& echo 'xdebug.mode=coverage' >> /usr/local/etc/php/php.ini
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ WordPress で [カラーミーショップ](https://shop-pro.jp/) に登録し

## 動作環境

PHP 7.3 以上
PHP 7.4 以上

## 一緒に開発しませんか?

Expand Down
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: colormeshop
Tags: ecommerce, ec, colormeshop
Requires at least: 5.2
Tested up to: 5.8.1
Requires PHP: 7.3.0
Requires PHP: 7.4.0
Stable tag: trunk
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down
4 changes: 2 additions & 2 deletions colormeshop-wp-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Author URI: https://pepabo.com/
* License: GPL2
*/
if ( version_compare( PHP_VERSION, '7.3', '<' ) ) {
if ( version_compare( PHP_VERSION, '7.4', '<' ) ) {
add_action( 'admin_notices', 'colormeshop_wp_plugin_requirements_error' );
return;
}
Expand All @@ -28,7 +28,7 @@ function colormeshop_wp_plugin_requirements_error() {
echo <<<__EOS__
<div class="error">
<p>
カラーミーショップ WordPress プラグインは PHP7.3 以上が必要ですが、ご利用中のバージョンは <strong>{$v}</strong> です。<br />
カラーミーショップ WordPress プラグインは PHP7.4 以上が必要ですが、ご利用中のバージョンは <strong>{$v}</strong> です。<br />
現在、プラグインは動作を停止していますので、PHP のアップデート後に再度プラグインを有効化してください。<br />
ご利用お待ちしています!
</p>
Expand Down
9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
],
"config": {
"platform": {
"php": "7.4"
"php": "7.4",
"ext-filter": "7.1"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require": {
Expand All @@ -24,7 +28,8 @@
"squizlabs/php_codesniffer": "*",
"wp-coding-standards/wpcs": "*",
"phpcompatibility/phpcompatibility-wp": "*",
"dealerdirect/phpcodesniffer-composer-installer": "*"
"dealerdirect/phpcodesniffer-composer-installer": "*",
"yoast/phpunit-polyfills": "^1.0.3"
},
"autoload": {
"classmap": ["src/"]
Expand Down
Loading