mohamedhekal/classbridge-testing
Pest testing helpers and assertions for ClassBridge without LiveKit
3
| Install | |
|---|---|
composer require mohamedhekal/classbridge-testing |
|
| Latest Version: | v0.1.1 |
| PHP: | ^8.2 |
| License: | MIT |
| Last Updated: | Jul 16, 2026 |
| Links: | GitHub · Packagist |
Maintainer: mohamedhekal
ClassBridge Testing
Pest helpers and assertions for testing ClassBridge integrations without LiveKit credentials.
Installation
composer require --dev mohamedhekal/classbridge-testing
CI without LiveKit
Use the built-in fake driver from the core package for fast, deterministic tests:
CLASSBRIDGE_DRIVER=fake
Then assert classroom actions in your feature tests:
use Hekal\ClassBridge\Testing\ClassBridgeTestCase;
use Hekal\ClassBridge\Enums\MediaType;
class SessionModerationTest extends ClassBridgeTestCase
{
public function test_teacher_can_mute_student(): void
{
// ... exercise your application code ...
$this->assertParticipantMuted('room-1', 'student-42', MediaType::Audio);
$this->assertRoomCreated('session-1');
}
}
Or with Pest, extend the package test case via uses():
uses(Hekal\ClassBridge\Testing\ClassBridgeTestCase::class);
The trait resolves the in-memory FakeClassroomDriver from ClassBridge and exposes assertion helpers via ClassBridgeFake.
License
MIT
Related Packages
sikessem/devtools
🧪 Tools needed for PHP and Laravel project development and automation.
5,961
1
actions
analyze-code
automated-testing
code-analyzer
code-inpector
collision
dd
debug
debugbar
debugger
dev
dev-tools
devtools
die-dump
dump
fake
faker
ide-helper
ignition
inspect-code
larastan
laravel
laravel-debugbar
laravel-devtools
laravel-test-tools
laravel-testing-tools
laravel-tools
lint
mock
mockery
pest
php
phpstan
phpunit
pint
psalm
ray
rector
refactor
sigui
siguici
sikessem
test
test-automation
test-tools
testing
testing-tools
var-dump
var-dumper
web-tools
webtools
defstudio/pest-plugin-laravel-expectations
A plugin to add laravel tailored expectations to Pest
617,310
98