<commit_before><?php

namespace ProcessWire\GraphQL\Test\Field\Page\Fieldtype\Traits;

use \ProcessWire\GraphQL\Utils;

trait FieldAccessTrait {

  public static function setUpBeforeClass()
  {
    parent::setUpBeforeClass();
    Utils::module()->legalTemplates = [self::TEMPLATE_NAME];
    Utils::module()->legalFields = [self::FIELD_NAME];
    Utils::session()->login('admin', Utils::config()->testUsers['admin']);
  }

  public static function tearDownAfterClass()
  {
    parent::tearDownAfterClass();
    Utils::session()->logout();
  }

}<commit_msg>Call parent teardown after logout.<commit_after><?php

namespace ProcessWire\GraphQL\Test\Field\Page\Fieldtype\Traits;

use \ProcessWire\GraphQL\Utils;

trait FieldAccessTrait {

  public static function setUpBeforeClass()
  {
    parent::setUpBeforeClass();
    Utils::module()->legalTemplates = [self::TEMPLATE_NAME];
    Utils::module()->legalFields = [self::FIELD_NAME];
    Utils::session()->login('admin', Utils::config()->testUsers['admin']);
  }

  public static function tearDownAfterClass()
  {
    Utils::session()->logout();
    parent::tearDownAfterClass();
  }

}
{'fraction_non_alphanumeric': 0.1615180935569285, 'fraction_numerical': 0.0, 'mean_word_length': 5.3, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '6715833', 'n_tokens_mistral': 360, 'n_tokens_neox': 346, 'n_words': 52}