public function testDetectsDuplicateStartDates()
 {
     Season::create(['start_date' => '2011-01-01']);
     Season::create(['start_date' => '2011-01-01']);
     $validator = new SeasonsValidator();
     $validator->validate();
     $issues = $validator->issues();
     $this->assertEquals(1, count($issues));
     $issue = $issues[0];
     $this->assertEquals('duplicate_start_dates', $issue->type);
     $this->assertEquals('Some of your seasons have the same start date.', $issue->message());
 }
    private function view_template()
    {
        $validator = new SeasonsValidator();
        $validator->validate();
        $issues = $validator->issues();
        foreach ($validator->issues() as $issue) {
            ?>
			<div class="error">
				<p>
					<strong><?php 
            echo __('Warning', 'podlove') . ': ';
            ?>
</strong>
					<?php 
            echo $issue->message();
            ?>
				</p>
			</div>
			<?php 
        }
        $this->table->prepare_items();
        $this->table->display();
    }