From 193fa14bc6e970c3a804f614ad8e64bbfe046bdc Mon Sep 17 00:00:00 2001
From: Sebastian Pisula <sebastian.pisula@gmail.com>
Date: Thu, 26 Jan 2023 13:01:06 +0100
Subject: [PATCH] feature(core): small changes

---
 .gitlab-ci.yml                  |  2 +-
 changelog.txt                   |  6 ++++--
 plugin-template.php             |  7 ++++---
 scoper.inc.php                  | 16 +++++++++++++++-
 tests/integration/bootstrap.php |  2 +-
 tests/unit/bootstrap.php        | 12 ------------
 6 files changed, 25 insertions(+), 20 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 32c7ffb..d5e2c33 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,7 @@ variables:
   CODECEPTION_PARALLEL: 1
 
 # only for free plugin
-include: 'https://gitlab.com/wpdesk/gitlab-ci/raw/master/gitlab-ci-free.yml'
+include: '${CI_SERVER_URL}/wpdesk/gitlab-ci/raw/master/gitlab-ci-free.yml'
 
 integration:earliest:
     when: manual
diff --git a/changelog.txt b/changelog.txt
index 6407fc1..19200a9 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,5 +1,7 @@
 *** plugin-template Changelog ***
 
-## [1.0.0] - 2017-06-20
+## [1.0.0] - 2022-10-01
 ### Added
-- use https://keepachangelog.com/en/1.0.0/ standards in your changelog
+- First Release!
+
+##### Added,Fixed
diff --git a/plugin-template.php b/plugin-template.php
index 755f3bc..8132cab 100644
--- a/plugin-template.php
+++ b/plugin-template.php
@@ -10,9 +10,9 @@
  * Domain Path: /lang/
  * ​
  * Requires at least: 5.7
- * Tested up to: 6.0
- * WC requires at least: 6.6
- * WC tested up to: 7.0
+ * Tested up to: 6.1
+ * WC requires at least: 7.0
+ * WC tested up to: 7.4
  * Requires PHP: 7.2
  * ​
  * Copyright 2022 WP Desk Ltd.
@@ -49,6 +49,7 @@ $plugin_dir         = __DIR__;
 // todo: only for paid plugins.
 $plugin_shops = [
 	'default' => 'https://www.wpdesk.net/',
+	'pl_PL'   => 'https://www.wpdesk.pl/',
 ];
 
 $requirements = [
diff --git a/scoper.inc.php b/scoper.inc.php
index 2c3bf17..ec67c20 100644
--- a/scoper.inc.php
+++ b/scoper.inc.php
@@ -17,7 +17,21 @@ return [
 		Finder::create()
 		      ->files()
 		      ->ignoreVCS( true )
-		      ->name( [ '*.php', 'composer.json', '*.css', '*.js', '*.jpg', '*.png', '*.wsdl' ] )
+		      ->name( [
+			      '*.php',
+			      'composer.json',
+			      '*.css',
+			      '*.js',
+			      '*.scss',
+			      '*.jsx',
+			      '*.jpg',
+			      '*.png',
+			      '*.svg',
+			      '*.ttf',
+			      '*.otf',
+			      '*.woff',
+			      '*.woff2',
+		      ] )
 		      ->exclude( [
 			      'doc',
 			      'test',
diff --git a/tests/integration/bootstrap.php b/tests/integration/bootstrap.php
index 2bcf354..2abbfdc 100644
--- a/tests/integration/bootstrap.php
+++ b/tests/integration/bootstrap.php
@@ -1,6 +1,6 @@
 <?php
 
-ini_set('error_reporting', E_ALL); // or error_reporting(E_ALL);
+error_reporting( E_ALL & ~E_DEPRECATED );
 ini_set('display_errors', '1');
 ini_set('display_startup_errors', '1');
 
diff --git a/tests/unit/bootstrap.php b/tests/unit/bootstrap.php
index cb59777..1a91701 100644
--- a/tests/unit/bootstrap.php
+++ b/tests/unit/bootstrap.php
@@ -7,17 +7,5 @@ require_once __DIR__ . '/../../vendor/autoload.php';
 
 error_reporting( E_ALL & ~E_DEPRECATED );
 
-if ( getenv( 'PLUGIN_PATH' ) !== false ) {
-	define( 'PLUGIN_PATH', getenv( 'PLUGIN_PATH' ) );
-} else {
-	define( 'PLUGIN_PATH', __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR );
-}
-
-if ( getenv( 'ABSPATH' ) !== false ) {
-	define( 'ABSPATH', getenv( 'ABSPATH' ) );
-} else {
-	define( 'ABSPATH', PLUGIN_PATH . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR );
-}
-
 WP_Mock::setUsePatchwork( true );
 WP_Mock::bootstrap();
-- 
GitLab