tests/Unit/Controllers/UrlControllerTest.php
/**
     * The keyword column in the table of Url must be filled with a value that
     * generated by UrlHub. The is_custom column must be filled with 0 / false.
     *
     * @test
     * @group u-controller
     */
The keyword column in the table of Url must be filled with a value that
generated by UrlHub. The is_custom column must be filled with 0 / false.

@test
@group u-controller
The keyword column in the table of Url must be filled with a value that generated by UrlHub . The is_custom column must be filled with 0 / false . @test @group u - controller
public function shortenUrl_not_custom()
    {
        $longUrl = 'https://laravel.com';
        $this->post(route('createshortlink'), [
            'long_url' => $longUrl,
        ]);
        $url = Url::whereLongUrl($longUrl)->first();
        $this->assertEquals(
            uHub('hash_length'),
            strlen($url->keyword)
        );
        $this->assertFalse($url->is_custom);
    }
public function shortenUrl_not_custom ( ) { $ longUrl = 'https://laravel.com' ; $ this -> post ( route ( 'createshortlink' ) , [ 'long_url' => $ longUrl , ] ) ; $ url = Url :: whereLongUrl ( $ longUrl ) -> first ( ) ; $ this -> assertEquals ( uHub ( 'hash_length' ) , strlen ( $ url -> keyword ) ) ; $ this -> assertFalse ( $ url -> is_custom ) ; }
The keyword column in the table of Url must be filled with a value that
 generated by UrlHub.
The keyword column in the table of Url must be filled with a value that generated by UrlHub .