Skip to content

Commit ea98239

Browse files
committed
Update changelog and module docs
1 parent 4440173 commit ea98239

File tree

3 files changed

+47
-62
lines changed

3 files changed

+47
-62
lines changed

changelog.markdown

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ title: Codeception Changelog
88
# Changelog
99

1010

11+
#### 4.1.16
12+
13+
* Detect the suite from a test path relative to the current working dir ([#6051](https://github.com/Codeception/Codeception/issues/6051))
14+
* GroupManager: Fixed bug introduced in 4.1.15
15+
* Show location of warning in error message ([#6090](https://github.com/Codeception/Codeception/issues/6090))
16+
1117
#### 4.1.15
1218

1319
* GroupManager: Show which group contains a missing file [#5938](https://github.com/Codeception/Codeception/issues/5938)

docs/modules/Lumen.md

Lines changed: 40 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This module allows you to run functional tests for Lumen.
3737
Please try it and leave your feedback.
3838

3939
### Demo project
40-
<https://github.com/Codeception/codeception-lumen-sample>
40+
<https://github.com/codeception/lumen-module-tests>
4141

4242

4343
### Config
@@ -56,13 +56,18 @@ Please try it and leave your feedback.
5656

5757
### Parts
5858

59-
* ORM - only include the database methods of this module:
59+
* `ORM`: Only include the database methods of this module:
60+
* dontSeeRecord
61+
* grabRecord
6062
* have
6163
* haveMultiple
6264
* haveRecord
63-
* grabRecord
65+
* make
66+
* makeMultiple
6467
* seeRecord
65-
* dontSeeRecord
68+
69+
See [WebDriver module](https://codeception.com/docs/modules/WebDriver#Loading-Parts-from-other-Modules)
70+
for general information on how to load parts of a framework module.
6671

6772
### Actions
6873

@@ -206,9 +211,8 @@ Authenticates user for HTTP_AUTH
206211
Set the authenticated user for the next request.
207212
This will not persist between multiple requests.
208213

209-
* `param` \Illuminate\Contracts\Auth\Authenticatable
210-
* `param` string|null $driver The authentication driver for Lumen <= 5.1.*, guard name for Lumen >= 5.2
211-
* `return` void
214+
* `param Authenticatable` $user
215+
* `param string|null` $guardName The guard name
212216

213217

214218
#### amOnPage
@@ -236,11 +240,10 @@ Opens web page using route name and parameters.
236240

237241
<?php
238242
$I->amOnRoute('homepage');
239-
?>
240243

241244
{% endhighlight %}
242245

243-
* `param` $routeName
246+
* `param string` $routeName
244247
* `param array` $params
245248

246249

@@ -284,7 +287,6 @@ Clear the registered application handlers.
284287

285288
<?php
286289
$I->clearApplicationHandlers();
287-
?>
288290

289291
{% endhighlight %}
290292

@@ -615,9 +617,8 @@ You can pass the name of a database table or the class name of an Eloquent model
615617
{% highlight php %}
616618

617619
<?php
618-
$I->dontSeeRecord('users', array('name' => 'davert'));
619-
$I->dontSeeRecord('App\User', array('name' => 'davert'));
620-
?>
620+
$I->dontSeeRecord('users', ['name' => 'davert']);
621+
$I->dontSeeRecord('App\Models\User', ['name' => 'davert']);
621622

622623
{% endhighlight %}
623624

@@ -663,8 +664,6 @@ $I->fillField(['name' => 'email'], 'jon@mail.com');
663664

664665
Provides access the Lumen application object.
665666

666-
* `return` \Laravel\Lumen\Application
667-
668667

669668
#### grabAttributeFrom
670669

@@ -761,9 +760,8 @@ You can also pass the class name of an Eloquent model, in that case this method
761760
{% highlight php %}
762761

763762
<?php
764-
$record = $I->grabRecord('users', array('name' => 'davert')); // returns array
765-
$record = $I->grabRecord('App\User', array('name' => 'davert')); // returns Eloquent model
766-
?>
763+
$record = $I->grabRecord('users', ['name' => 'davert']); // returns array
764+
$record = $I->grabRecord('App\Models\User', ['name' => 'davert']); // returns Eloquent model
767765

768766
{% endhighlight %}
769767

@@ -791,11 +789,10 @@ App::bind('foo', function($app)
791789
$service = $I->grabService('foo');
792790

793791
// Will return an instance of FooBar, also works for singletons.
794-
?>
795792

796793
{% endhighlight %}
797794

798-
* `param` string $class
795+
* `param string` $class
799796

800797

801798
#### grabTextFrom
@@ -828,15 +825,13 @@ $value = $I->grabTextFrom('~<input value=(.*?)]~sgi'); // match with a regex
828825
#### have
829826

830827
Use Lumen's model factory to create a model.
831-
Can only be used with Lumen 5.1 and later.
832828

833829
{% highlight php %}
834830

835831
<?php
836-
$I->have('App\User');
837-
$I->have('App\User', ['name' => 'John Doe']);
838-
$I->have('App\User', [], 'admin');
839-
?>
832+
$I->have('App\Models\User');
833+
$I->have('App\Models\User', ['name' => 'John Doe']);
834+
$I->have('App\Models\User', [], 'admin');
840835

841836
{% endhighlight %}
842837

@@ -858,7 +853,6 @@ The Laravel application object will be passed as an argument to the handler.
858853
$I->haveApplicationHandler(function($app) {
859854
$app->make('config')->set(['test_value' => '10']);
860855
});
861-
?>
862856

863857
{% endhighlight %}
864858

@@ -873,8 +867,7 @@ Add a binding to the Laravel service container.
873867
{% highlight php %}
874868

875869
<?php
876-
$I->haveBinding('My\Interface', 'My\Implementation');
877-
?>
870+
$I->haveBinding('App\MyInterface', 'App\MyImplementation');
878871

879872
{% endhighlight %}
880873

@@ -890,13 +883,12 @@ Add a contextual binding to the Laravel service container.
890883
{% highlight php %}
891884

892885
<?php
893-
$I->haveContextualBinding('My\Class', '$variable', 'value');
886+
$I->haveContextualBinding('App\MyClass', '$variable', 'value');
894887

895888
// This is similar to the following in your Laravel application
896-
$app->when('My\Class')
889+
$app->when('App\MyClass')
897890
->needs('$variable')
898891
->give('value');
899-
?>
900892

901893
{% endhighlight %}
902894

@@ -946,8 +938,7 @@ Add an instance binding to the Laravel service container.
946938
{% highlight php %}
947939

948940
<?php
949-
$I->haveInstance('My\Class', new My\Class());
950-
?>
941+
$I->haveInstance('App\MyClass', new App\MyClass());
951942

952943
{% endhighlight %}
953944

@@ -957,16 +948,14 @@ $I->haveInstance('My\Class', new My\Class());
957948

958949
#### haveMultiple
959950

960-
Use Laravel's model factory to create multiple models.
961-
Can only be used with Lumen 5.1 and later.
951+
Use Laravel model factory to create multiple models.
962952

963953
{% highlight php %}
964954

965955
<?php
966-
$I->haveMultiple('App\User', 10);
967-
$I->haveMultiple('App\User', 10, ['name' => 'John Doe']);
968-
$I->haveMultiple('App\User', 10, [], 'admin');
969-
?>
956+
$I->haveMultiple('App\Models\User', 10);
957+
$I->haveMultiple('App\Models\User', 10, ['name' => 'John Doe']);
958+
$I->haveMultiple('App\Models\User', 10, [], 'admin');
970959

971960
{% endhighlight %}
972961

@@ -987,9 +976,8 @@ You can also pass the class name of an Eloquent model, in that case this method
987976
{% highlight php %}
988977

989978
<?php
990-
$user_id = $I->haveRecord('users', array('name' => 'Davert')); // returns integer
991-
$user = $I->haveRecord('App\User', array('name' => 'Davert')); // returns Eloquent model
992-
?>
979+
$userId = $I->haveRecord('users', ['name' => 'Davert']); // returns integer
980+
$user = $I->haveRecord('App\Models\User', ['name' => 'Davert']); // returns Eloquent model
993981

994982
{% endhighlight %}
995983

@@ -1021,7 +1009,6 @@ Add a singleton binding to the Laravel service container.
10211009

10221010
<?php
10231011
$I->haveSingleton('My\Interface', 'My\Singleton');
1024-
?>
10251012

10261013
{% endhighlight %}
10271014

@@ -1032,15 +1019,13 @@ $I->haveSingleton('My\Interface', 'My\Singleton');
10321019
#### make
10331020

10341021
Use Lumen's model factory to make a model instance.
1035-
Can only be used with Lumen 5.1 and later.
10361022

10371023
{% highlight php %}
10381024

10391025
<?php
1040-
$I->make('App\User');
1041-
$I->make('App\User', ['name' => 'John Doe']);
1042-
$I->make('App\User', [], 'admin');
1043-
?>
1026+
$I->make('App\Models\User');
1027+
$I->make('App\Models\User', ['name' => 'John Doe']);
1028+
$I->make('App\Models\User', [], 'admin');
10441029

10451030
{% endhighlight %}
10461031

@@ -1070,16 +1055,14 @@ $I->makeHtmlSnapshot();
10701055

10711056
#### makeMultiple
10721057

1073-
Use Laravel's model factory to make multiple model instances.
1074-
Can only be used with Lumen 5.1 and later.
1058+
Use Laravel model factory to make multiple model instances.
10751059

10761060
{% highlight php %}
10771061

10781062
<?php
1079-
$I->makeMultiple('App\User', 10);
1080-
$I->makeMultiple('App\User', 10, ['name' => 'John Doe']);
1081-
$I->makeMultiple('App\User', 10, [], 'admin');
1082-
?>
1063+
$I->makeMultiple('App\Models\User', 10);
1064+
$I->makeMultiple('App\Models\User', 10, ['name' => 'John Doe']);
1065+
$I->makeMultiple('App\Models\User', 10, [], 'admin');
10831066

10841067
{% endhighlight %}
10851068

@@ -1445,8 +1428,8 @@ You can pass the name of a database table or the class name of an Eloquent model
14451428
{% highlight php %}
14461429

14471430
<?php
1448-
$I->seeRecord('users', array('name' => 'davert'));
1449-
$I->seeRecord('App\User', array('name' => 'davert'));
1431+
$I->seeRecord('users', ['name' => 'Davert']);
1432+
$I->seeRecord('App\Models\User', ['name' => 'Davert']);
14501433
?>
14511434

14521435
{% endhighlight %}
@@ -1596,8 +1579,7 @@ $I->sendAjaxRequest('PUT', '/posts/7', ['title' => 'new title']);
15961579

15971580

15981581
#### setApplication
1599-
1600-
* `param \Laravel\Lumen\Application` $app
1582+
__not documented__
16011583

16021584

16031585
#### setCookie

docs/modules/Phalcon4.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ Sample bootstrap (`app/config/bootstrap.php`):
7272
{% highlight php %}
7373

7474
<?php
75-
$config = include __DIR__ . "/config.php";
76-
include __DIR__ . "/loader.php";
7775
$di = new \Phalcon\DI\FactoryDefault();
78-
include __DIR__ . "/services.php";
7976
return new \Phalcon\Mvc\Application($di);
8077
?>
8178

@@ -86,7 +83,7 @@ return new \Phalcon\Mvc\Application($di);
8683
actor: AcceptanceTester
8784
modules:
8885
enabled:
89-
- Phalcon:
86+
- Phalcon4:
9087
part: services
9188
bootstrap: 'app/config/bootstrap.php'
9289
cleanup: true

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy