Skip to content

Commit 15225f6

Browse files
committed
Remove unnecessary method-level group annotations
1 parent 74b64bd commit 15225f6

File tree

13 files changed

+1
-71
lines changed

13 files changed

+1
-71
lines changed

tests/system/Database/BaseConnectionTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ public function testCanConnectAndStoreConnection()
100100
$this->assertSame(123, $db->getConnection());
101101
}
102102

103-
/**
104-
* @group single
105-
*/
106103
public function testCanConnectToFailoverWhenNoConnectionAvailable()
107104
{
108105
$options = $this->options;

tests/system/Database/BaseQueryTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,6 @@ public function testSimpleBindsWithNamedBindPlaceholderElsewhere()
305305
}
306306

307307
/**
308-
* @group single
309-
*
310308
* @see https://github.com/codeigniter4/CodeIgniter4/issues/201
311309
*/
312310
public function testSimilarNamedBinds()

tests/system/Database/Builder/LikeTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,6 @@ public function testOrNotLike()
189189
$this->assertSame($expectedBinds, $builder->getBinds());
190190
}
191191

192-
/**
193-
* @group single
194-
*/
195192
public function testCaseInsensitiveLike()
196193
{
197194
$builder = new BaseBuilder('job', $this->db);

tests/system/Database/Live/DeleteTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ public function testDeleteWithInternalWhere()
5353
$this->dontSeeInDatabase('job', ['name' => 'Developer']);
5454
}
5555

56-
/**
57-
* @group single
58-
*
59-
* @throws DatabaseException
60-
*/
6156
public function testDeleteWithLimit()
6257
{
6358
$this->seeNumRecords(2, 'user', ['country' => 'US']);

tests/system/Database/Live/UpdateTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,7 @@ public function testUpdateWithWhereSameColumn3()
181181
}
182182

183183
/**
184-
* @group single
185-
*
186-
* @see https://github.com/codeigniter4/CodeIgniter4/issues/324
184+
* @see https://github.com/codeigniter4/CodeIgniter4/issues/324
187185
*/
188186
public function testUpdatePeriods()
189187
{

tests/system/Database/Live/WhereTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ public function testWhereIn()
106106
$this->assertSame('Accountant', $jobs[1]->name);
107107
}
108108

109-
/**
110-
* @group single
111-
*/
112109
public function testWhereNotIn()
113110
{
114111
$jobs = $this->db->table('job')

tests/system/HTTP/Files/FileCollectionTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,6 @@ public function testExtensionGuessing()
218218
$this->assertSame('zip', $file->guessExtension());
219219
}
220220

221-
/**
222-
* @group single
223-
*/
224221
public function testAllReturnsValidSingleFileNestedName()
225222
{
226223
$_FILES = [
@@ -309,9 +306,6 @@ public function testHasFileWithMultipleFilesWithDifferentNames()
309306
$this->assertTrue($collection->hasFile('userfile2'));
310307
}
311308

312-
/**
313-
* @group single
314-
*/
315309
public function testHasFileWithSingleFileNestedName()
316310
{
317311
$_FILES = [

tests/system/HTTP/NegotiateTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ public function testNegotiateMediaSupportsStrictMatching()
8181
$this->assertSame('', $this->negotiate->media(['text/plain'], true));
8282
}
8383

84-
/**
85-
* @group single
86-
*/
8784
public function testAcceptCharsetMatchesBasics()
8885
{
8986
$this->request->setHeader('Accept-Charset', 'iso-8859-5, unicode-1-1;q=0.8');

tests/system/HTTP/URITest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,6 @@ public function testResolveRelativeURI($rel, $expected)
663663
/**
664664
* @dataProvider defaultResolutions
665665
*
666-
* @group single
667-
*
668666
* @param mixed $rel
669667
* @param mixed $expected
670668
*/
@@ -792,8 +790,6 @@ public function testGetQueryWithStrings()
792790

793791
/**
794792
* @see https://github.com/codeigniter4/CodeIgniter4/issues/331
795-
*
796-
* @group single
797793
*/
798794
public function testNoExtraSlashes()
799795
{

tests/system/Helpers/NumberHelperTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,6 @@ public function testQuadrillions()
123123
$this->assertSame('123.5 quadrillion', number_to_amount('123,456,700,000,000,000', 1, 'en_US'));
124124
}
125125

126-
/**
127-
* @group single
128-
*/
129126
public function testCurrencyCurrentLocale()
130127
{
131128
$this->assertSame('$1,235', number_to_currency(1234.56, 'USD', 'en_US'));

tests/system/Session/SessionTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,6 @@ public function testSetTempDataArraySingleTTL()
463463
$this->assertLessThanOrEqual($_SESSION['__ci_vars']['baz'], $time + 200);
464464
}
465465

466-
/**
467-
* @group single
468-
*/
469466
public function testGetTestDataReturnsAll()
470467
{
471468
$session = $this->getInstance();

tests/system/Throttle/ThrottleTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,6 @@ public function testRemove()
107107
$this->assertTrue($throttler->check('127.0.0.1', 1, MINUTE));
108108
}
109109

110-
/**
111-
* @group single
112-
*/
113110
public function testDecrementsValues()
114111
{
115112
$throttler = new Throttler($this->cache);

tests/system/View/ParserTest.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,6 @@ public function testParseRuns()
744744
$this->assertSame($result, $this->parser->renderString($template));
745745
}
746746

747-
/**
748-
* @group parserplugins
749-
*/
750747
public function testCanAddAndRemovePlugins()
751748
{
752749
$this->parser->addPlugin('first', static fn ($str) => $str);
@@ -762,19 +759,13 @@ public function testCanAddAndRemovePlugins()
762759
$this->assertArrayNotHasKey('first', $setParsers);
763760
}
764761

765-
/**
766-
* @group parserplugins
767-
*/
768762
public function testParserPluginNoMatches()
769763
{
770764
$template = 'hit:it';
771765

772766
$this->assertSame('hit:it', $this->parser->renderString($template));
773767
}
774768

775-
/**
776-
* @group parserplugins
777-
*/
778769
public function testParserPluginNoParams()
779770
{
780771
$this->parser->addPlugin('hit:it', static fn ($str) => str_replace('here', 'Hip to the Hop', $str), true);
@@ -784,9 +775,6 @@ public function testParserPluginNoParams()
784775
$this->assertSame(' stuff Hip to the Hop ', $this->parser->renderString($template));
785776
}
786777

787-
/**
788-
* @group parserplugins
789-
*/
790778
public function testParserPluginClosure()
791779
{
792780
$config = $this->config;
@@ -799,9 +787,6 @@ public function testParserPluginClosure()
799787
$this->assertSame('Hello, world', $this->parser->renderString($template));
800788
}
801789

802-
/**
803-
* @group parserplugins
804-
*/
805790
public function testParserPluginParams()
806791
{
807792
$this->parser->addPlugin('growth', static function ($str, array $params) {
@@ -822,9 +807,6 @@ public function testParserPluginParams()
822807
$this->assertSame(' 2 4 6 8', $this->parser->renderString($template));
823808
}
824809

825-
/**
826-
* @group parserplugins
827-
*/
828810
public function testParserSingleTag()
829811
{
830812
$this->parser->addPlugin('hit:it', static fn () => 'Hip to the Hop', false);
@@ -834,9 +816,6 @@ public function testParserSingleTag()
834816
$this->assertSame('Hip to the Hop', $this->parser->renderString($template));
835817
}
836818

837-
/**
838-
* @group parserplugins
839-
*/
840819
public function testParserSingleTagWithParams()
841820
{
842821
$this->parser->addPlugin('hit:it', static fn (array $params = []) => "{$params['first']} to the {$params['last']}", false);
@@ -846,9 +825,6 @@ public function testParserSingleTagWithParams()
846825
$this->assertSame('foo to the bar', $this->parser->renderString($template));
847826
}
848827

849-
/**
850-
* @group parserplugins
851-
*/
852828
public function testParserSingleTagWithSingleParams()
853829
{
854830
$this->parser->addPlugin('hit:it', static fn (array $params = []) => "{$params[0]} to the {$params[1]}", false);
@@ -858,9 +834,6 @@ public function testParserSingleTagWithSingleParams()
858834
$this->assertSame('foo to the bar', $this->parser->renderString($template));
859835
}
860836

861-
/**
862-
* @group parserplugins
863-
*/
864837
public function testParserSingleTagWithQuotedParams()
865838
{
866839
$this->parser->addPlugin('count', static function (array $params = []) {
@@ -878,9 +851,6 @@ public function testParserSingleTagWithQuotedParams()
878851
$this->assertSame('0. foo bar 1. baz 2. foo bar ', $this->parser->renderString($template));
879852
}
880853

881-
/**
882-
* @group parserplugins
883-
*/
884854
public function testParserSingleTagWithNamedParams()
885855
{
886856
$this->parser->addPlugin('read_params', static function (array $params = []) {

0 commit comments

Comments
 (0)