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
/* | |
* Firefox 133.0 | |
*/ | |
/* Removes the padding between pinned and unpinned tabs */ | |
#tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab[first-visible-unpinned-tab] { | |
margin-inline-start: 0 !important; | |
} | |
/* Makes the speaker icon to always appear if the tab is playing (not only on hover) */ |
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
<?php | |
namespace App\Exceptions; | |
use Exception; | |
use Illuminate\Support\ViewErrorBag; | |
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; | |
class Handler extends ExceptionHandler | |
{ |
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
# Create a file in Plugins/ | |
# You can run this via Sublime's console with: view.run_command("php_unit_test_method") | |
# You can bind it to ctrl+e as a regular command | |
import sublime | |
import sublime_plugin | |
class PhpUnitTestMethodCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
line = self.view.substr(self.view.line(self.view.sel()[0])) |
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
<snippet> | |
<content><![CDATA[ | |
/** @test */ | |
function ${1/\s/_/g}() { | |
${0:// ${1:type name of method with spaces}} | |
} | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>test</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> |
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
<?php | |
use Illuminate\Support\Facades\Hash; | |
use Illuminate\Support\Facades\Notification; | |
use Illuminate\Auth\Notifications\ResetPassword; | |
// ... | |
Notification::assertSentTo($user, ResetPassword::class, function ($notification, $channels) use ($token) { | |
return Hash::check($notification->token, $token->token) === true; |
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
<?php | |
namespace Tests\Feature\Auth; | |
use App\User; | |
use Tests\TestCase; | |
use Illuminate\Support\Facades\Notification; | |
use Illuminate\Foundation\Testing\WithFaker; | |
use Illuminate\Foundation\Testing\RefreshDatabase; |
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
<?php | |
$response->assertCookie(Auth::guard()->getRecallerName(), vsprintf('%s|%s|%s', [ | |
$user->id, | |
$user->getRememberToken(), | |
$user->password, | |
])); |
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
<?php | |
$value = vsprintf('%s|%s|%s', [ | |
$user->id, | |
$user->getRememberToken(), | |
$user->password, | |
])); |
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
<?php | |
// ... | |
class LoginTest extends TestCase | |
{ | |
// ... | |
public function test_remember_me_functionality() | |
{ |
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
<?php | |
// ... | |
class LoginTest extends TestCase | |
{ | |
// ... | |
public function test_user_cannot_login_with_incorrect_password() | |
{ |
NewerOlder