Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
WAZIRI123 committed May 14, 2024
1 parent 98f48c5 commit 64edee2
Show file tree
Hide file tree
Showing 44 changed files with 1,173 additions and 164 deletions.
1 change: 1 addition & 0 deletions .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"defects":{"Waziri123\\WaziriLivewireToast\\Tests\\BackgroundColorTest::test_setType":8},"times":{"Waziri123\\WaziriLivewireToast\\Tests\\BackgroundColorTest::test_setType":4.365}}
31 changes: 31 additions & 0 deletions BackgroundColorTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

namespace Waziri123\WaziriLivewireToast\Tests;


use Livewire\Livewire;
use ReflectionClass;
use Waziri123\WaziriLivewireToast\Http\Livewire\LivewireToast;


class BackgroundColorTest extends TestCase
{
public function setUp(): void
{
parent::setUp();
// additional setup

}


public function test_setType()
{
Livewire::test(LivewireToast::class)
->call('_setType','warning')
->assertSet('type', 'warning');

}



}
43 changes: 38 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
"name": "waziri123/waziri-livewire-toast",
"description": "Livewire Package to display Toast Notifications",
"license": "MIT",
"keywords": ["Laravel", "LivewireToast", "Toast", "Notifications", "Livewire"],
"keywords": [
"Laravel",
"LivewireToast",
"Toast",
"Notifications",
"Livewire"
],
"authors": [
{
"name": "Waziri123",
Expand All @@ -11,12 +17,39 @@
],
"autoload": {
"psr-4": {
"Waziri123\\WaziriLivewireToast\\" : "src/"
"Waziri123\\WaziriLivewireToast\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Waziri123\\WaziriLivewireToast\\Tests\\": "tests",
"Workbench\\App\\": "workbench/app/",
"Workbench\\Database\\Factories\\": "workbench/database/factories/",
"Workbench\\Database\\Seeders\\": "workbench/database/seeders/"
}
},
"scripts": {
"test": "vendor/bin/phpunit",
"test-coverage": "phpunit --coverage-html coverage",
"post-autoload-dump": [
"@clear",
"@prepare"
],
"clear": "@php vendor/bin/testbench package:purge-skeleton --ansi",
"prepare": "@php vendor/bin/testbench package:discover --ansi",
"build": "@php vendor/bin/testbench workbench:build --ansi",
"serve": [
"Composer\\Config::disableProcessTimeout",
"@build",
"@php vendor/bin/testbench serve"
],
"lint": [
"@php vendor/bin/phpstan analyse"
]
},
"require": {

"livewire/livewire": "^3.4.12"
"livewire/livewire": "^3.4.12",
"christophrumpel/missing-livewire-assertions": "^2.8"
},
"extra": {
"laravel": {
Expand All @@ -28,4 +61,4 @@
"require-dev": {
"orchestra/testbench": "^9.0"
}
}
}
175 changes: 150 additions & 25 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 64edee2

Please sign in to comment.