Compare commits
2 commits
645d8af22d
...
c1d3345a01
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c1d3345a01 | ||
|
|
c1d3ea0a30 |
3 changed files with 20 additions and 1 deletions
|
|
@ -141,6 +141,10 @@ a {
|
||||||
box-shadow: 0 16px 40px rgba(23, 32, 51, 0.06);
|
box-shadow: 0 16px 40px rgba(23, 32, 51, 0.06);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.admin-card {
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
.admin-table {
|
.admin-table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ final class GitSynchronizer
|
||||||
$this->runGit(['git', '-C', $repositoryDir, 'remote', 'set-url', 'origin', $mapping->getRepositoryUrl()], null, $env);
|
$this->runGit(['git', '-C', $repositoryDir, 'remote', 'set-url', 'origin', $mapping->getRepositoryUrl()], null, $env);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->runGit(['git', '-C', $repositoryDir, 'fetch', '--prune', '--tags', 'origin', $mapping->getGitRef()], null, $env);
|
$this->runGit(['git', '-C', $repositoryDir, 'fetch', '--prune', '--tags', '--force', 'origin', $mapping->getGitRef()], null, $env);
|
||||||
$this->runGit(['git', '-C', $repositoryDir, 'checkout', '--force', 'FETCH_HEAD'], null, $env);
|
$this->runGit(['git', '-C', $repositoryDir, 'checkout', '--force', 'FETCH_HEAD'], null, $env);
|
||||||
|
|
||||||
return $repositoryDir;
|
return $repositoryDir;
|
||||||
|
|
|
||||||
15
tests/AdminCssTest.php
Normal file
15
tests/AdminCssTest.php
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Tests;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
|
final class AdminCssTest extends TestCase
|
||||||
|
{
|
||||||
|
public function testAdminCardDefinesInnerPadding(): void
|
||||||
|
{
|
||||||
|
$css = (string) file_get_contents(dirname(__DIR__).'/public/admin.css');
|
||||||
|
|
||||||
|
self::assertMatchesRegularExpression('/\.admin-card\s*\{[^}]*\bpadding:\s*24px;/s', $css);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue