-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated samuelgfeller/test-traits to v6 [SLE-192]
- Loading branch information
1 parent
e1bb6fc
commit 648f267
Showing
39 changed files
with
132 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ jobs: | |
script: | | ||
cd ${{ secrets.DEMO_PROJECT_ROOT }} | ||
chmod +x vendor/bin/phinx | ||
composer migrate-prod | ||
composer migrate:prod | ||
- name: ♥️ Sync files with care-point | ||
uses: SamKirkland/[email protected] | ||
|
@@ -90,4 +90,4 @@ jobs: | |
script: | | ||
cd ${{ secrets.CARE_POINT_PROJECT_ROOT }} | ||
chmod +x vendor/bin/phinx | ||
composer migrate-prod | ||
composer migrate:prod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,10 @@ It showcases the implementation of a simple yet robust | |
with a variety of backend and | ||
frontend features built using the Slim 4 micro-framework. | ||
The base for this project was the official | ||
[Slim-Skeleton](https://github.com/slimphp/Slim-Skeleton). | ||
[Slim-Skeleton](https://github.com/slimphp/Slim-Skeleton) and the [slim4-skeleton](https://github.com/odan/slim4-skeleton). | ||
|
||
This repository can serve as a learning example or be adapted for developing new | ||
applications. | ||
applications. | ||
|
||
External library dependencies are [kept to a minimum](https://github.com/samuelgfeller/slim-example-project/wiki/Libraries-and-Framework) | ||
to facilitate maintenance and ensure long-term viability. | ||
|
@@ -32,17 +32,18 @@ A detailed [**documentation**](https://github.com/samuelgfeller/slim-example-pro | |
Please read the [**installation guide**](https://github.com/samuelgfeller/slim-example-project/wiki/Installation-Guide) | ||
to get started. | ||
|
||
Stripped down versions of this repository are available as skeleton templates: | ||
[**slim-api-starter**](https://github.com/samuelgfeller/slim-api-starter) (only API) and | ||
[**slim-starter**](https://github.com/samuelgfeller/slim-starter) (with frontend and API endpoint). | ||
Stripped down versions of this repository are available as skeleton | ||
templates. | ||
With frontend [`slim-starter`](https://github.com/samuelgfeller/slim-starter) or just for an API: | ||
[`slim-api-starter`](https://github.com/samuelgfeller/slim-api-starter). | ||
|
||
## Features | ||
All the features were developed with an effort to ensure maximum user-friendliness. | ||
The frontend should be intuitive, aesthetically pleasing, minimalistic, and functional. | ||
The backend should be efficient and secure. | ||
The frontend, intuitive, aesthetically pleasing, minimalistic, and functional. | ||
The backend, efficient and secure. | ||
|
||
This project is currently designed for non-profit organizations or foundations that require a platform | ||
to manage and maintain a record of communication through notes of people they assist. | ||
to manage and maintain a record of communication through notes of people they help. | ||
|
||
**Project components:** | ||
|
||
|
@@ -56,8 +57,7 @@ to manage and maintain a record of communication through notes of people they as | |
protection against rapid fire and distributed brute force attacks (time throttling and captcha) | ||
* [Localization](https://github.com/samuelgfeller/slim-example-project/wiki/Translations) - English, German and French | ||
* [Validation](https://github.com/samuelgfeller/slim-example-project/wiki/Validation) | ||
* [Template rendering](https://github.com/samuelgfeller/slim-example-project/wiki/Template-rendering) with native PHP syntax | ||
* [Editing values using `contenteditable`](https://github.com/samuelgfeller/slim-example-project/wiki/JavaScript-Frontend#contenteditable-fields) | ||
* [Template rendering](https://github.com/samuelgfeller/slim-example-project/wiki/Template-rendering) with native PHP syntax (easily interchangeable with twig) | ||
* [Dark theme](https://github.com/samuelgfeller/slim-example-project/wiki/Dark-Theme) | ||
* [Advanced error handling](https://github.com/samuelgfeller/slim-example-project/wiki/Error-Handling) | ||
* [Integration & unit testing](https://github.com/samuelgfeller/slim-example-project/wiki/Writing-Tests) | ||
|
@@ -66,7 +66,8 @@ to manage and maintain a record of communication through notes of people they as | |
* [Query Builder](https://github.com/samuelgfeller/slim-example-project/wiki/Repository-and-Query-Builder) | ||
* [Logging](https://github.com/samuelgfeller/slim-example-project/wiki/Logging) | ||
* [Mailing](https://github.com/samuelgfeller/slim-example-project/wiki/Mailing) | ||
* Simple [console commands](https://github.com/samuelgfeller/slim-example-project/wiki/Console-Commands) | ||
* [Simple console commands](https://github.com/samuelgfeller/slim-example-project/wiki/Console-Commands) | ||
* [Scrutinizer](https://github.com/samuelgfeller/slim-example-project/wiki/How-to-set-up-Scrutinizer) | ||
* [GitHub Actions](https://github.com/samuelgfeller/slim-example-project/wiki/GitHub-Actions) | ||
|
||
**Functionalities demonstrating real-world features:** | ||
|
@@ -86,9 +87,9 @@ to manage and maintain a record of communication through notes of people they as | |
<summary><b>Click to see demo</b></summary> | ||
|
||
Link: [Login](https://demo.slim-example-project.samuel-gfeller.ch) | ||
Usernames: `admin@user.com` | `[email protected]` | `[email protected]` | `newcomer@user.com` | ||
Username: `[email protected]` | ||
Password: `12345678` | ||
The database is reset every hour. | ||
The database is reset regularly. | ||
|
||
</details> | ||
|
||
|
@@ -121,7 +122,7 @@ Of course, there are big frameworks that have their own well-established set of | |
implementations of features. | ||
|
||
However, I find them often | ||
too complex, where the code makes too much "behind the scenes" and lots of dependencies, | ||
too complex, where the code makes too much "behind the scenes" and with lots of dependencies, | ||
which can lead to time-consuming refactoring on version changes. | ||
I also dislike having to follow the propitiatory rules of a framework and | ||
much prefer the freedom of a micro-framework and carefully | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ public function testLoginSubmitAction(): void | |
{ | ||
$loginValues = ['password' => '12345678', 'email' => '[email protected]']; | ||
$userRow = $this->insertFixture( | ||
new UserFixture(), | ||
UserFixture::class, | ||
[ | ||
'password_hash' => password_hash($loginValues['password'], PASSWORD_DEFAULT), | ||
'email' => $loginValues['email'], | ||
|
@@ -79,7 +79,7 @@ public function testLoginSubmitAction(): void | |
*/ | ||
public function testLoginSubmitActionWrongPassword(): void | ||
{ | ||
$this->insertFixture(new UserFixture()); | ||
$this->insertFixture(UserFixture::class); | ||
|
||
$invalidCredentials = [ | ||
'email' => '[email protected]', | ||
|
@@ -114,7 +114,7 @@ public function testLoginSubmitActionWrongPassword(): void | |
#[DataProviderExternal(\App\Test\Provider\Authentication\AuthenticationProvider::class, 'invalidLoginCredentialsProvider')] | ||
public function testLoginSubmitActionInvalidValues(array $invalidLoginValues, string $errorMessage): void | ||
{ | ||
$this->insertFixture(new UserFixture()); | ||
$this->insertFixture(UserFixture::class); | ||
|
||
// Create request | ||
$request = $this->createFormRequest('POST', $this->urlFor('login-submit'), $invalidLoginValues); | ||
|
@@ -148,7 +148,7 @@ public function testLoginSubmitActionNotActiveAccount(UserStatus $status, string | |
{ | ||
$loginValues = ['password' => '12345678', 'email' => '[email protected]']; | ||
$userRow = $this->insertFixture( | ||
new UserFixture(), | ||
UserFixture::class, | ||
[ | ||
'password_hash' => password_hash($loginValues['password'], PASSWORD_DEFAULT), | ||
'email' => $loginValues['email'], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.