<commit_before><?php

class AdminControllerTest extends AimeosTestAbstract
{
	public function testIndexAction()
	{
		$response = $this->action('GET', '\Aimeos\Shop\Controller\AdminController@indexAction', [], ['site' => 'unittest']);

		$this->assertResponseOk();
		$this->assertRegexp('#<script type="text/javascript">.*window.MShop = {#smu', $response->getContent());
	}


	public function testDoAction()
	{
		$response = $this->action('GET', '\Aimeos\Shop\Controller\AdminController@doAction', ['site' => 'unittest']);

		$this->assertResponseOk();
		$this->assertRegexp('#{.*}#smu', $response->getContent());
	}
}<commit_msg>Adapt admin JSON RPC test<commit_after><?php

class AdminControllerTest extends AimeosTestAbstract
{
	public function testIndexAction()
	{
		$response = $this->action('GET', '\Aimeos\Shop\Controller\AdminController@indexAction', [], ['site' => 'unittest']);

		$this->assertResponseOk();
		$this->assertRegexp('#<script type="text/javascript">.*window.MShop = {#smu', $response->getContent());
	}


	public function testDoAction()
	{
		$response = $this->action('POST', '\Aimeos\Shop\Controller\AdminController@doAction', ['site' => 'unittest']);

		$this->assertResponseOk();
		$this->assertRegexp('#{.*}#smu', $response->getContent());
	}
}
{'fraction_non_alphanumeric': 0.20613690007867821, 'fraction_numerical': 0.0, 'mean_word_length': 6.43859649122807, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 25, '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': '7474337', 'n_tokens_mistral': 423, 'n_tokens_neox': 401, 'n_words': 62}