Pantheon\Terminus\UnitTests\Commands\Backup\ListCommandTest::testListBackupsWithDatabaseElement PHP Method

testListBackupsWithDatabaseElement() public method

Tests the backup:list command with 'db' element
    public function testListBackupsWithDatabaseElement()
    {
        $this->backups->expects($this->once())->method('getFinishedBackups')->with('database')->willReturn([$this->backup]);
        $this->command->listBackups('mysite.dev', 'db');
    }