<commit_before><?php

namespace SimplyTestable\ApiBundle\Tests\Services\Job\Configuration\RemoveAll\User;

use SimplyTestable\ApiBundle\Exception\Services\Job\Configuration\Exception as JobConfigurationServiceException;

class InUseByScheduledJobTest extends UserTest {

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

        $this->getScheduledJobService()->create($this->jobConfiguration);

//        try {

//        } catch (\Exception $e) {
//            var_dump(get_class($e));
//        }


    }

    public function testRemoveThrowsException() {
        $this->setExpectedException(
            'SimplyTestable\ApiBundle\Exception\Services\Job\Configuration\Exception',
            'One or more job configurations are in use by one or more scheduled jobs',
            JobConfigurationServiceException::CODE_IS_IN_USE_BY_SCHEDULED_JOB
        );

        $this->getJobConfigurationService()->removeAll();
    }
}<commit_msg>cruft--<commit_after><?php

namespace SimplyTestable\ApiBundle\Tests\Services\Job\Configuration\RemoveAll\User;

use SimplyTestable\ApiBundle\Exception\Services\Job\Configuration\Exception as JobConfigurationServiceException;

class InUseByScheduledJobTest extends UserTest {

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

        $this->getScheduledJobService()->create($this->jobConfiguration);
    }

    public function testRemoveThrowsException() {
        $this->setExpectedException(
            'SimplyTestable\ApiBundle\Exception\Services\Job\Configuration\Exception',
            'One or more job configurations are in use by one or more scheduled jobs',
            JobConfigurationServiceException::CODE_IS_IN_USE_BY_SCHEDULED_JOB
        );

        $this->getJobConfigurationService()->removeAll();
    }
}
{'fraction_non_alphanumeric': 0.10152284263959391, 'fraction_numerical': 0.0, 'mean_word_length': 3.491139240506329, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '6546777', 'n_tokens_mistral': 471, 'n_tokens_neox': 460, 'n_words': 79}