Test-Driven Development
Senddera includes a comprehensive testing suite based on PHPUnit. You can run tests specifically for your plugin to ensure stability.
Running Tests
# Run all tests for a specific plugin
php artisan test --plugin=MyPlugin
Writing a Test
namespace Plugins\MyPlugin\Tests;
use Tests\TestCase;
class MyPluginTest extends TestCase
{
public function test_plugin_is_loaded()
{
$this->assertTrue(app()->has('my-plugin'));
}
}