<commit_before><?php

use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;

class AuthTest extends TestCase {

	/**
	 * Login, do this first
	 *
	 * @return void
	 */
	public function testLogin()
	{
		$response = $this->login();
		
		$this->assertEquals(200, $response->getStatusCode());
		$this->seeJsonContains([
             	"api_key" => Session::get('token')
         ]);
	}

	/**
	 * Logout
	 *
	 * @return void
	 */
	public function testLogout()
	{
		$this->login();
		$response = $this->call('GET', static::$apiPath . '/user/logout/' . Session::get('token'));

        $this->assertEquals(200, $response->getStatusCode());
	}

}<commit_msg>Adds @covers annotation<commit_after><?php

use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;

class AuthTest extends TestCase {

	/**
	 * Login, do this first
	 *
     * @covers App\Http\Controllers\Api\V1\UserController::authenticate
     * @covers App\LaravelRestCms\User\User::authenticate
     * @covers App\LaravelRestCms\User\UserTransformer::transform
	 * @return void
	 */
	public function testLogin()
	{
		$response = $this->login();
		
		$this->assertEquals(200, $response->getStatusCode());
		$this->seeJsonContains([
             	"api_key" => Session::get('token')
         ]);
	}

	/**
	 * Logout
	 *
     * @covers App\Http\Controllers\Api\V1\UserController::deauthenticate
	 * @return void
	 */
	public function testLogout()
	{
		$this->login();
		$response = $this->call('GET', static::$apiPath . '/user/logout/' . Session::get('token'));

        $this->assertEquals(200, $response->getStatusCode());
	}

}
{'fraction_non_alphanumeric': 0.16202672605790647, 'fraction_numerical': 0.0077951002227171495, 'mean_word_length': 3.792, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7124299', 'n_tokens_mistral': 594, 'n_tokens_neox': 564, 'n_words': 92}