friendica/tests/src/App/RouterTest.php

76 lines
1.6 KiB
PHP
Raw Permalink Normal View History

<?php
2024-08-24 12:31:41 +00:00
// Copyright (C) 2010-2024, the Friendica project
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
//
// SPDX-License-Identifier: AGPL-3.0-or-later
namespace Friendica\Test\src\App;
use Dice\Dice;
use Friendica\App\Arguments;
2021-10-26 19:44:29 +00:00
use Friendica\Core\Cache\Capability\ICanCache;
use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Core\L10n;
2021-10-26 19:44:29 +00:00
use Friendica\Core\Lock\Capability\ICanLock;
use Mockery;
use Mockery\MockInterface;
use PHPUnit\Framework\TestCase;
class RouterTest extends TestCase
{
/** @var L10n|MockInterface */
private $l10n;
/**
2021-10-26 19:44:29 +00:00
* @var ICanCache
*/
private $cache;
/**
2021-10-26 20:09:11 +00:00
* @var ICanLock
*/
private $lock;
/**
* @var IManageConfigValues
*/
private $config;
/**
* @var Dice
*/
private $dice;
/**
* @var Arguments
*/
private $arguments;
protected function setUp(): void
{
parent::setUp();
self::markTestIncomplete('Router tests need refactoring!');
/*
$this->l10n = Mockery::mock(L10n::class);
$this->l10n->shouldReceive('t')->andReturnUsing(function ($args) { return $args; });
2021-10-26 19:44:29 +00:00
$this->cache = Mockery::mock(ICanCache::class);
$this->cache->shouldReceive('get')->andReturn(null);
$this->cache->shouldReceive('set')->andReturn(false);
2021-07-25 04:44:23 +00:00
2021-10-26 19:44:29 +00:00
$this->lock = Mockery::mock(ICanLock::class);
2021-07-25 04:56:40 +00:00
$this->lock->shouldReceive('acquire')->andReturn(true);
$this->lock->shouldReceive('isLocked')->andReturn(false);
$this->config = Mockery::mock(IManageConfigValues::class);
$this->dice = new Dice();
$this->arguments = Mockery::mock(Arguments::class);
*/
}
public function test()
{
}
}