Skip to content

Commit

Permalink
Merge pull request #119 from defstudio/new-docs
Browse files Browse the repository at this point in the history
new docs
  • Loading branch information
fabio-ivona authored Apr 18, 2024
2 parents c5e1095 + 910e55f commit 32bf304
Show file tree
Hide file tree
Showing 41 changed files with 59 additions and 30,920 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/docs.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ it('can check model exists', function(){
You can install the package via composer:

```bash
composer require --dev defstudio/pest-plugin-laravel-expectations
composer require --dev defstudio/pest-plugin-laravel-11.expectations
```

The expectations added by this plugin are automatically loaded into Pest's expectation system. They can be used along other expectations.
Expand Down
3 changes: 0 additions & 3 deletions docs/.env.example

This file was deleted.

11 changes: 0 additions & 11 deletions docs/.gitignore

This file was deleted.

15 changes: 6 additions & 9 deletions docs/content/en/index.md → docs/0.index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
title: 'Pest Laravel Expectations'
menuTitle: 'Introduction'
description: 'Laravel tailored @pestphp expectations for web artisans'
position: 1
fullscreen: true
description: 'Laravel tailored @pestphp 11.expectations for web artisans'
---

<img src="https://banners.beyondco.de/Pest%20Laravel%20Expectations.png?theme=light&packageManager=composer+require&packageName=--dev+defstudio%2Fpest-plugin-laravel-expectations&pattern=circuitBoard&style=style_2&description=Laravel+tailored+%40pestphp+expectations&md=1&showWatermark=0&fontSize=100px&images=https%3A%2F%2Flaravel.com%2Fimg%2Flogomark.min.svg" class="light-img" alt=""/>
Expand All @@ -13,22 +11,21 @@ fullscreen: true
<a href="https://packagist.org/packages/defstudio/pest-plugin-laravel-expectations" target="_blank">
<img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" src="https://img.shields.io/packagist/v/defstudio/pest-plugin-laravel-expectations.svg?style=flat-square" alt="Latest Version on Packagist">
</a>

<a href="https://github.com/defstudio/pest-plugin-laravel-expectations/actions?query=workflow%3A%22Run+Tests%22+branch%3Amaster" target="_blank">
<img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" src="https://img.shields.io/github/actions/workflow/status/defstudio/pest-plugin-laravel-expectations/tests.yml?branch=master&label=tests" alt="GitHub Tests Action Status">
</a>

<a href="https://github.com/defstudio/pest-plugin-laravel-expectations/actions?query=workflow%3A%22Static+Analysis%22+branch%3Amaster" target="_blank">
<img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" src="https://img.shields.io/github/actions/workflow/status/defstudio/pest-plugin-laravel-expectations/static.yml?branch=master&label=code%20style" alt="GitHub Code Style Action Status">
</a>

<a href="https://packagist.org/packages/defstudio/pest-plugin-laravel-expectations" target="_blank">
<img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" src="https://img.shields.io/packagist/dt/defstudio/pest-plugin-laravel-expectations.svg?style=flat-square" alt="Total Downloads">
</a>

<a href="https://packagist.org/packages/defstudio/pest-plugin-laravel-expectations" target="_blank">
<img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" src="https://img.shields.io/packagist/l/defstudio/pest-plugin-laravel-expectations" alt="License">
</a>
<a href="https://twitter.com/FabioIvona?ref_src=twsrc%5Etfw" target="_blank">
<img style="display: inline-block; margin-top: 0.5em; margin-bottom: 0.5em" alt="Twitter Follow" src="https://img.shields.io/twitter/follow/FabioIvona?label=Follow&style=social">
</a>


#### Easily add Laravel specific expectations to your [Pest](https://pestphp.com) testing ecosystem
Expand Down Expand Up @@ -58,7 +55,7 @@ test('home is rendered', function () {
});
```

Get the full source code at [https://github.com/defstudio/pest-plugin-laravel-expectations](https://github.com/defstudio/pest-plugin-laravel-expectations)
[replace:full-source-code]


This plugin is powered by [def:studio](https://github.com/defstudio)
[replace:powered-by]
1 change: 1 addition & 0 deletions docs/1.about-us.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[replace:about-us]
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
title: Authentication Expectations
menuTitle: Authentication
description: ''
category: 'Expectations'
fullscreen: false
position: 10
---

### `toBeAbleTo()`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
title: Collections Expectations
menuTitle: Collections
description: ''
category: 'Expectations'
fullscreen: false
position: 10
---

### `toBeCollection()`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
title: Database Expectations
menuTitle: Database
description: ''
category: 'Expectations'
fullscreen: false
position: 10
---

### `toBeInDatabase()`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
title: Exceptions Expectations
menuTitle: Exceptions
description: ''
category: 'Expectations'
fullscreen: false
position: 10
---

### `toThrowValidationException()` (available from v2, still with v1? Upgrade!)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
title: Models Expectations
menuTitle: Models
description: ''
category: 'Expectations'
fullscreen: false
position: 10
---

### `toBe()` (available from v2, still with v1? Upgrade!)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
title: Responses Expectations
menuTitle: Responses
description: ''
category: 'Expectations'
fullscreen: false
position: 10
---

<alert type="info">**Note: this plugin wraps Responses to TestResponse, so expectations in this page can be used both with get()/post() calls and with object returned from response() helpers.</alert>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
title: Storage Expectations
menuTitle: Storage
description: ''
category: 'Expectations'
fullscreen: false
position: 10
---

### `toExistInStorage()`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
title: Time Expectations
menuTitle: Time
description: ''
category: 'Expectations'
fullscreen: false
position: 10
---

### `toBeAfter()`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
title: Views Expectations
menuTitle: Views
description: ''
category: 'Expectations'
fullscreen: false
position: 10
---

### `toBeView()`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
---
title: Contribute
description: ''
category: 'Developers'
fullscreen: true
position: 20
---

Contributions are welcome, and are accepted via pull requests.
Expand All @@ -24,3 +20,47 @@ Please review these guidelines before submitting any pull requests.
* Send a coherent commit history, making sure each individual commit in your pull request is meaningful.
* You may need to [rebase](https://git-scm.com/book/en/v2/Git-Branching-Rebasing) to avoid merge conflicts.
* Please remember that we follow [SemVer](http://semver.org/).

## Setup

1. Fork the [main repository](https://github.com/defstudio/pest-plugin-laravel-expectations) by clicking the **Fork** button

2. Clone your forked project to your development machine
```bash
git clone https://github.com/{your-github-name}/pest-plugin-laravel-11.expectations
```

3. Create a new branch
```bash
git checkout -b my-awesome-feature
```

4. Install the dev dependencies:
```bash
composer install
```

## Test your code

## Lint

Lint your code to ensure it fulfills our package styling standards:
```bash
composer lint
```
## Tests

Run all tests:
```bash
composer test
```

Check types:
```bash
composer test:types
```

Unit tests:
```bash
composer test:unit
```
1 change: 1 addition & 0 deletions docs/12.community/2.releases.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[replace:releases]
1 change: 1 addition & 0 deletions docs/12.community/3.changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[replace:changelog]
6 changes: 2 additions & 4 deletions docs/content/en/installation.md → docs/2.installation.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
---
title: Installation & Configuration
menuTitle: 'Installation'
description: ''
position: 2
fullscreen: true
---

<alert type="info">**Note:** This plugin assumes you already have a working [Pest](https://pestphp.com) test suite in your Laravel project.</alert>
> [!Note]
> This plugin assumes you already have a working [Pest](https://pestphp.com) test suite in your Laravel project.

You can install the package via composer:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
---
title: Autocompletion
menuTitle: 'Autocompletion'
description: ''
position: 3
fullscreen: true
---

## PhpStorm Autocompletion

For PhpStorm users, a nice Plugin has been developed by [Oliver Nybroe](https://github.com/olivernybroe). It adds full autocompletion to ours Laravel Expectations, it is worth to take a look: [https://github.com/pestphp/pest-intellij](https://github.com/pestphp/pest-intellij)

![](https://raw.githubusercontent.com/defstudio/pest-plugin-laravel-expectations-docs/main/static/docs/phpstorm-autocompletion.png "PhpStorm Autocompletion")
![PhpStorm Autocompletion](/img/phpstorm-autocompletion.png)

## Visual Studio Code Autocompletion

Expand Down
1 change: 1 addition & 0 deletions docs/4.issues.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[replace:issues]
1 change: 1 addition & 0 deletions docs/5.support-us.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[replace:support-us]
35 changes: 0 additions & 35 deletions docs/README.md

This file was deleted.

10 changes: 0 additions & 10 deletions docs/content/en/about-us.md

This file was deleted.

Loading

0 comments on commit 32bf304

Please sign in to comment.