-
Notifications
You must be signed in to change notification settings - Fork 2k
Fix options are not passed to Command $params #5206
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
Conversation
8db6a57 to
a8dd95e
Compare
|
I can't fix the test: https://github.com/codeigniter4/CodeIgniter4/pull/5206/files#diff-547eef440769bc0c1aac5c4f0a08ee7a180baa78a52bf5eb6d624fb0a77c04aaL81 |
|
Another test error: It is true, |
|
Use |
a2220f0 to
61c5960
Compare
No, this is the opposite case. Adding I separated the test method to another test case, and fixed it. |
|
I meant diff --git a/tests/system/CLI/ConsoleTest.php b/tests/system/CLI/ConsoleTest.php
index a5b3dd1e9..389bbe129 100644
--- a/tests/system/CLI/ConsoleTest.php
+++ b/tests/system/CLI/ConsoleTest.php
@@ -78,6 +78,9 @@ final class ConsoleTest extends CIUnitTestCase
$this->assertSame('', $result);
}
+ /**
+ * @runTestInSeparateProcess
+ */
public function testRun()
{
$request = new CLIRequest(config('App'));PS C:\Users\P\Desktop\Web Dev\CodeIgniter4> vendor/bin/phpunit --filter ConsoleTest
PHPUnit 9.5.10 by Sebastian Bergmann and contributors.
Runtime: PHP 8.0.11 with Xdebug 3.0.4
Configuration: C:\Users\P\Desktop\Web Dev\CodeIgniter4\phpunit.xml.dist
.... 4 / 4 (100%)
Time: 00:05.281, Memory: 74.00 MB
OK (4 tests, 5 assertions)
Generating code coverage report in Clover XML format ... done [00:06.127] |
61c5960 to
fc45e5a
Compare
|
In my understanding As you say, |
|
Yes. |
|
No, it wasn't. There are only They are just comment, so if we have one typo, it is just ignored. Without them, all tests in |
fc45e5a to
9348899
Compare
|
When I put only When I put I can't write test for this PR. |
|
Paul has much more recent experience with this but I can hop in and take a look if needed. |
|
The problem is running I have no idea to solve it. |
|
As far as I remember, calling |
No. The request is not a mock. I just changed Adding |
1fbcd24 to
a28e215
Compare
01081e8 to
f488904
Compare
f488904 to
21a21cc
Compare
|
Updated completely. |
|
Looks like maybe this needs to be rebased? Showing some of the work from the Context PR, unless I'm mistaken. |
|
No, this is up to date. |
|
Gotcha. The context comment on |
Description
Fixes #3400
When you run the following command:
$paramsof theTestcommand would be:Checklist: