<commit_before><?php namespace CodeIgniter\Database\Live;

use CodeIgniter\Database\BaseResult;

/**
 * @group DatabaseLive
 */
class SelectTest extends \CIDatabaseTestCase
{
	protected $refresh = true;

	protected $seed = 'CITestSeeder';

	public function __construct()
	{
	    parent::__construct();

		$this->db = \Config\Database::connect($this->DBGroup);
		$this->db->initialize();
	}

	//--------------------------------------------------------------------


	public function testSelectAllByDefault()
	{
	    $row = $this->db->table('job')->get()->getRowArray();

		$this->assertArrayHasKey('id', $row);
		$this->assertArrayHasKey('name', $row);
		$this->assertArrayHasKey('description', $row);
	}<commit_msg>Fix SelectTest to enable --exclude-group=DatabaseLive without database<commit_after><?php namespace CodeIgniter\Database\Live;

use CodeIgniter\Database\BaseResult;

/**
 * @group DatabaseLive
 */
class SelectTest extends \CIDatabaseTestCase
{
	protected $refresh = true;

	protected $seed = 'CITestSeeder';

	//--------------------------------------------------------------------

	public function testSelectAllByDefault()
	{
		$row = $this->db->table('job')->get()->getRowArray();

		$this->assertArrayHasKey('id', $row);
		$this->assertArrayHasKey('name', $row);
		$this->assertArrayHasKey('description', $row);
	}
{'fraction_non_alphanumeric': 0.2545045045045045, 'fraction_numerical': 0.0, 'mean_word_length': 3.0393939393939395, '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': '1202707', 'n_tokens_mistral': 405, 'n_tokens_neox': 380, 'n_words': 69}