Koji Tanaka
1d6fd78d45
test: Fix ConnectionManagerTest::testSourceList().
...
Co-authored-by: Kenshin Okinaka <okinakak@yahoo.co.jp>
2023-01-11 22:45:29 +01:00
Koji Tanaka
bab8a84436
test: Improved MemcachedEngineTest/MemcacheEngineTest.
2023-01-11 22:45:29 +01:00
Koji Tanaka
d7d7230929
test: Fix CakeEmailTest::testResetWithCharset()
...
Co-authored-by: Kenshin Okinaka <okinakak@yahoo.co.jp>
2023-01-11 22:45:29 +01:00
Koji Tanaka
7c55817dbc
test: Change TLS version used in testEnableCryptoTlsV11().
...
Co-authored-by: Kenshin Okinaka <okinakak@yahoo.co.jp>
2023-01-11 22:45:29 +01:00
Koji Tanaka
d69a09b972
test: Fix error "Error : Unknown named parameter $some" in CakeEventManagerTest
2023-01-11 22:45:29 +01:00
Koji Tanaka
e0101949e4
test: Fix for MysqlTest, a new test error in PHP 8.0
...
Co-authored-by: Kenshin Okinaka <okinakak@yahoo.co.jp>
2023-01-11 22:45:29 +01:00
Koji Tanaka
40d5f32516
test: Fix assertion of SecurityComponentTest::testCsrfNonceVacuum()
2023-01-11 22:45:29 +01:00
Koji Tanaka
7e4adb37e5
test: Replace deprecated assertion methods that access non-public properties with methods that use reflection.
...
Co-authored-by: Kenshin Okinaka <okinakak@yahoo.co.jp>
2023-01-11 22:45:29 +01:00
Koji Tanaka
b5e7d582d9
test: Replace deprecated assertInternalType()
...
Co-authored-by: Kenshin Okinaka <okinakak@yahoo.co.jp>
2023-01-11 22:45:29 +01:00
Koji Tanaka
a5f6b6c8ee
test: Attempting to read an undefined variable causes a Warning error (PHP 8.0+)
...
see: https://www.php.net/manual/en/migration80.incompatible.php
2023-01-11 22:45:29 +01:00
Koji Tanaka
76d1673958
test: Allow ErrorHandlerTest to run even if CakeLog configs (stdout and stderr) are not configured.
...
When ErrorHandlerTest is run with CakeTestRunner (TestShell) (or run with ShellTest, etc.), these configs are provided in the initialization process of the Shell class, but are not needed in many test cases.
2023-01-11 22:45:29 +01:00
Koji Tanaka
b46b6c758f
test: Replace deprecated attributeEqualTo()
2023-01-11 22:45:29 +01:00
Koji Tanaka
b1138db8f4
test: phpunit command does not use TestShell, HtmlCoverageReport. So skip test.
2023-01-11 22:45:29 +01:00
Koji Tanaka
2a7c06e16f
test: Replace PHPUnit's class name in tests
...
Co-authored-by: Kenshin Okinaka <okinakak@yahoo.co.jp>
2023-01-11 22:45:29 +01:00
Koji Tanaka
75437a4a85
test: Replace deprecated setExpectedException()
2023-01-11 22:45:29 +01:00
Koji Tanaka
b1417587ad
test: Replace deprecated @expectedException* to $this->expectException*()
2023-01-11 22:45:29 +01:00
Koji Tanaka
fe34a8551c
test: Replace deprecated @expectedException PHPUnit_Framework_Error
2023-01-11 22:45:29 +01:00
Koji Tanaka
c04692f76c
test: Replace deprecated @expectedException* to expectWarning*()/expectNotice*()
2023-01-11 22:45:29 +01:00
Koji Tanaka
eaefdbb977
test: Replace assertNotContains() with assertStringNotContainsString() for text assertion.
...
assertNotContains() can no longer be used for text containment assertion.
2023-01-11 22:45:29 +01:00
Koji Tanaka
dfc1c56625
test: Replace assertContains() with assertStringContainsString() for text assertion.
...
assertContains() can no longer be used for text containment assertion.
2023-01-11 22:45:29 +01:00
Koji Tanaka
6529d5a308
test: Replace deprecated assertNotRegExp() with assertDoesNotMatchRegularExpression().
...
Co-authored-by: Kenshin Okinaka <okinakak@yahoo.co.jp>
2023-01-11 22:45:29 +01:00
Koji Tanaka
883ce8041e
test: Replace deprecated assertRegExp() with assertMatchesRegularExpression().
...
Co-authored-by: Kenshin Okinaka <okinakak@yahoo.co.jp>
2023-01-11 22:45:29 +01:00
Koji Tanaka
c194e9b63e
test: Not using CakeHtmlReporter, because it is not compatible with PHPUnit 9.
2023-01-11 22:45:29 +01:00
Koji Tanaka
927b57fa14
test: Add App::uses() missing in the test code.
2023-01-11 22:45:29 +01:00
Koji Tanaka
e99ea6021c
fix: Change assertPattern()/assertNoPattern() to match changes in PHPUnit API
2023-01-11 22:45:29 +01:00
Koji Tanaka
0a05486693
fix: Change assertTextContains()/assertTextNotContains() to match changes in PHPUnit API
2023-01-11 22:45:29 +01:00
Koji Tanaka
e8453a04d4
build: Add exception rule to phpcs to use Type::class in test code.
2023-01-11 22:45:29 +01:00
Koji Tanaka
831bfe9315
test: In ConfigureTest::testBootstrap(), set error handler, so add cleanup.
...
This is because PHPUnit error handlers cannot catch PHP errors in tests that run after DebuggerTest if they expect them to occur and break the test process.
2023-01-11 22:45:29 +01:00
Koji Tanaka
5ae08a4dba
fixed: CakeFixtureManager::_setupTable() is called outside of transaction
...
Fixed PDOException thrown with the message "There is no active transaction" in PHP 8.0+.
SQL like CREATE/DROP/TRUNCATE TABLE implicitly commits just before.
In PHP 8.0+, calling commit/rollback afterwards will now throw a PDOException.
2023-01-11 22:45:29 +01:00
Koji Tanaka
b1229c9107
test: Removed pre-checking of tests that were skipped in the PHPUnit version since the minimum version is now 9.5.
2023-01-11 22:45:29 +01:00
Koji Tanaka
a1ed2f91b3
test: Remove expectError() and expectException()
...
These are incompatible signature with the PHPUnit 9 method of the same name.
2023-01-11 22:45:29 +01:00
Koji Tanaka
a95654de88
clean: Stop overriding TestCase::run().
...
Overriding the run method to perform fixture management processing is no longer necessary since moved it to CakeFixtureInjector.
Co-authored-by: Kenshin Okinaka <okinakak@yahoo.co.jp>
2023-01-11 22:45:29 +01:00
Koji Tanaka
75716f76bc
test: Add return type declarations to overridden methods of TestCase classes.
2023-01-11 22:45:29 +01:00
Koji Tanaka
0692ce5b62
test: Updated TestSuite class for PHPUnit 9.5
2023-01-11 22:45:29 +01:00
Koji Tanaka
aac44b074b
build: Added GitHub Actions workflow to run phpcs.
2023-01-11 22:45:29 +01:00
Koji Tanaka
30826e5902
build: Added GitHub Actions workflow to run all tests.
2023-01-11 22:45:29 +01:00
Koji Tanaka
fe26fedbbc
build: Cut out database.php embedded in .travis.yml
2023-01-11 22:45:29 +01:00
Koji Tanaka
bd633c023a
feat: Implement a fixture callback class using the PHPUnit TestListener interface.
2023-01-11 22:45:29 +01:00
Koji Tanaka
72079a54e6
build: add CakePHP2 tests bootstrap files
2023-01-11 22:45:29 +01:00
Koji Tanaka
5f504f1cff
build: add phpunit.xml.dist
2023-01-11 22:45:29 +01:00
Koji Tanaka
c377681424
$ composer require --dev phpunit/phpunit:^9.5
2023-01-11 22:45:29 +01:00
Kamil Wylegala
9e0fd38f37
Changelog.
2022-10-20 22:36:21 +02:00
chrip
dbb77bf125
Fix wrong line ending in email header when using MailTransport.
2022-10-20 22:35:02 +02:00
Kamil Wylegala
b99b71e7cc
Change log update.
2022-10-08 12:07:15 +02:00
Markus Bauer
a139699e7e
Include new "full_path" field in security hash as of PHP 8.1
2022-10-08 12:05:45 +02:00
Markus Bauer
ef8fee29b2
Fix schema migration that creates multiple UNIQUE indexes at once ( #18 )
...
* Fix schema migration that creates multiple UNIQUE indexes at once
* Add to changelog
Co-authored-by: Markus Bauer <markus.bauer@cispa.saarland>
2022-09-27 21:41:08 +02:00
Kamil Wylegala
a5a0ccd551
Fixed passing arguments to invokeArgs when resolving controller's action.
2022-03-08 19:55:03 +01:00
Kamil Wylegala
ea13b9f3d1
Merge pull request #14 from apeschar/rm-string
...
Remove String class
2022-03-03 10:10:39 +01:00
Albert Peschar
28e446d7bb
Update README
2022-03-03 10:49:49 +02:00
Albert Peschar
2121cdc43c
Remove String class
2022-03-03 10:27:13 +02:00