<?php
declare(strict_types=1);

/**
 * BEdita, API-first content management framework
 * Copyright 2016 ChannelWeb Srl, Chialab Srl
 *
 * This file is part of BEdita: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * See LICENSE.LGPL or <http://gnu.org/licenses/lgpl-3.0.html> for more details.
 */
namespace BEdita\Core\Test\Fixture;

use Cake\TestSuite\Fixture\TestFixture;

/**
 * Fixture for `external_auth` table.
 */
class ExternalAuthFixture extends TestFixture
{
    /**
     * @inheritDoc
     */
    public $table = 'external_auth';

    /**
     * @inheritDoc
     */
    public $records = [
        [
            'user_id' => 1,
            'auth_provider_id' => 1,
            'params' => null,
            'provider_username' => 'first_user',
            'created' => '2018-04-07 12:51:27',
            'modified' => '2018-04-07 12:51:27',
        ],
        [
            'user_id' => 5,
            'auth_provider_id' => 2,
            'params' => null,
            'provider_username' => '17fec0fa-068a-4d7c-8283-da91d47cef7d',
            'created' => '2018-04-07 12:51:27',
            'modified' => '2018-04-07 12:51:27',
        ],
        [
            'user_id' => 5,
            'auth_provider_id' => 3,
            'params' => null,
            'provider_username' => 'disabled_auth_provider',
            'created' => '2020-10-26 17:16:27',
            'modified' => '2020-10-26 17:16:27',
        ],
        [
            'user_id' => 20,
            'auth_provider_id' => 1,
            'params' => null,
            'provider_username' => 'third_user',
            'created' => '2018-04-10 12:51:27',
            'modified' => '2018-04-10 12:51:27',
        ],
    ];
}
