You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
環境:
baserCMS version : 5.0.7
Docker Desktop for Windows (バージョン 4.26.1)
./vendor/bin/phpunit ./plugins/baser-core/tests/TestCase/Model/Table/PagesTableTest.php
PHPUnit 9.6.15 by Sebastian Bergmann and contributors.
..IIIIIIIIIIwarning: 2 :: Attempt to read property "useSubDomain" on array on line 209 of /var/www/html/plugins/baser-core/src/Model/Table/PagesTable.php
Stack Trace:
BaserCore\Model\Table\PagesTable::createSearchIndex() /var/www/html/plugins/baser-core/src/Model/Table/PagesTable.php, line 209
BaserCore\Test\TestCase\Model\Table\PagesTableTest::testCreateSearchIndex() /var/www/html/plugins/baser-core/tests/TestCase/Model/Table/PagesTableTest.php, line 174
PHPUnit\Framework\TestCase::runTest() /var/www/html/vendor/phpunit/phpunit/src/Framework/TestCase.php, line 1612
PHPUnit\Framework\TestCase::runBare() /var/www/html/vendor/phpunit/phpunit/src/Framework/TestCase.php, line 1218
PHPUnit\Framework\TestResult::run() /var/www/html/vendor/phpunit/phpunit/src/Framework/TestResult.php, line 728
PHPUnit\Framework\TestCase::run() /var/www/html/vendor/phpunit/phpunit/src/Framework/TestCase.php, line 968
PHPUnit\Framework\TestSuite::run() /var/www/html/vendor/phpunit/phpunit/src/Framework/TestSuite.php, line 684
PHPUnit\TextUI\TestRunner::run() /var/www/html/vendor/phpunit/phpunit/src/TextUI/TestRunner.php, line 651
PHPUnit\TextUI\Command::run() /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php, line 144
PHPUnit\TextUI\Command::main() /var/www/html/vendor/phpunit/phpunit/src/TextUI/Command.php, line 97
include /var/www/html/vendor/phpunit/phpunit/phpunit, line 107
[main] /var/www/html/vendor/bin/phpunit, line 122
... 15 / 15 (100%)
Time: 00:11.032, Memory: 28.00 MB
OK, but incomplete, skipped, or risky tests!
Tests: 15, Assertions: 11, Incomplete: 10.
概要
86f1b95 時点のdev-5ブランチで
./vendor/bin/phpunit ./plugins/baser-core/tests/TestCase/Model/Table/PagesTableTest.phpを実行した所、下記のWarningが発生しました。
環境:
baserCMS version : 5.0.7
Docker Desktop for Windows (バージョン 4.26.1)
basercms/plugins/baser-core/src/Model/Table/PagesTable.php
Line 205 in 16388e4
のパターンでは$siteは配列になるため、配列の場合も考慮してuse_subdomainを取得する必要があるかと思いますが、如何でしょうか。
The text was updated successfully, but these errors were encountered: