Plugin Directory

Changeset 2010130


Ignore:
Timestamp:
01/10/2019 05:09:47 PM (7 years ago)
Author:
waughjai
Message:

Test in WordPress 5.0

Location:
waj-links
Files:
127 added
9 edited

Legend:

Unmodified
Added
Removed
  • waj-links/trunk/composer.lock

    r1979699 r2010130  
    5252        {
    5353            "name": "waughj/html-attribute-list",
    54             "version": "1.0.5",
     54            "version": "1.1.0",
    5555            "source": {
    5656                "type": "git",
    5757                "url": "https://github.com/waughjai/html-attribute-list.git",
    58                 "reference": "6f7bb02668b3b776c7ccc7bda91a4d6b270153a0"
    59             },
    60             "dist": {
    61                 "type": "zip",
    62                 "url": "https://api.github.com/repos/waughjai/html-attribute-list/zipball/6f7bb02668b3b776c7ccc7bda91a4d6b270153a0",
    63                 "reference": "6f7bb02668b3b776c7ccc7bda91a4d6b270153a0",
     58                "reference": "a34914ddfeab96efbbec1206120ff7fd682326d4"
     59            },
     60            "dist": {
     61                "type": "zip",
     62                "url": "https://api.github.com/repos/waughjai/html-attribute-list/zipball/a34914ddfeab96efbbec1206120ff7fd682326d4",
     63                "reference": "a34914ddfeab96efbbec1206120ff7fd682326d4",
    6464                "shasum": ""
    6565            },
     
    9393                "list"
    9494            ],
    95             "time": "2018-11-12T20:30:34+00:00"
     95            "time": "2018-12-28T23:34:34+00:00"
    9696        },
    9797        {
    9898            "name": "waughj/html-link",
    99             "version": "1.2.6",
     99            "version": "1.2.7",
    100100            "source": {
    101101                "type": "git",
    102102                "url": "https://github.com/waughjai/html-link.git",
    103                 "reference": "26464551191b23e3f5bf229e5c25b38f6b0e71a8"
    104             },
    105             "dist": {
    106                 "type": "zip",
    107                 "url": "https://api.github.com/repos/waughjai/html-link/zipball/26464551191b23e3f5bf229e5c25b38f6b0e71a8",
    108                 "reference": "26464551191b23e3f5bf229e5c25b38f6b0e71a8",
    109                 "shasum": ""
    110             },
    111             "require": {
    112                 "php": ">=7.0",
    113                 "waughj/html-attribute-list": ">=1.0.5",
     103                "reference": "6422e2355aec11dbe87d86e56ced27026ee1ee74"
     104            },
     105            "dist": {
     106                "type": "zip",
     107                "url": "https://api.github.com/repos/waughjai/html-link/zipball/6422e2355aec11dbe87d86e56ced27026ee1ee74",
     108                "reference": "6422e2355aec11dbe87d86e56ced27026ee1ee74",
     109                "shasum": ""
     110            },
     111            "require": {
     112                "php": ">=7.0",
     113                "waughj/html-attribute-list": ">=1.0.7",
    114114                "waughj/test-hash-item": ">=1.0.1"
    115115            },
     
    139139                "link"
    140140            ],
    141             "time": "2018-11-12T20:32:16+00:00"
     141            "time": "2018-11-28T20:41:43+00:00"
    142142        },
    143143        {
     
    235235        {
    236236            "name": "waughj/test-hash-item",
    237             "version": "1.0.1",
     237            "version": "1.1.0",
    238238            "source": {
    239239                "type": "git",
    240240                "url": "https://github.com/waughjai/test-hash-item.git",
    241                 "reference": "ddf5cbc1cadb2342d3a725a062bfaa20b7404807"
    242             },
    243             "dist": {
    244                 "type": "zip",
    245                 "url": "https://api.github.com/repos/waughjai/test-hash-item/zipball/ddf5cbc1cadb2342d3a725a062bfaa20b7404807",
    246                 "reference": "ddf5cbc1cadb2342d3a725a062bfaa20b7404807",
     241                "reference": "5657dc1ac52e629acdd6ce57936acafc60b00394"
     242            },
     243            "dist": {
     244                "type": "zip",
     245                "url": "https://api.github.com/repos/waughjai/test-hash-item/zipball/5657dc1ac52e629acdd6ce57936acafc60b00394",
     246                "reference": "5657dc1ac52e629acdd6ce57936acafc60b00394",
    247247                "shasum": ""
    248248            },
     
    274274                "tests"
    275275            ],
    276             "time": "2018-10-23T18:46:38+00:00"
     276            "time": "2018-11-29T20:46:20+00:00"
    277277        },
    278278        {
  • waj-links/trunk/readme.txt

    r1979701 r2010130  
    33Tags: link, html, auto-generate
    44Requires at least: 4.9.8
    5 Tested up to: 4.9.8
    6 Stable tag: 1.1.0
     5Tested up to: 5.0.3
     6Stable tag: 1.1.1
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    9494== Changelog ==
    9595
    96 - 1.1 =
     96= 1.1.1 =
     97* Test up to WordPress 5.0.
     98
     99= 1.1 =
    97100* Add phone link.
    98101
  • waj-links/trunk/vendor/composer/installed.json

    r1979699 r2010130  
    4747    {
    4848        "name": "waughj/html-attribute-list",
    49         "version": "1.0.5",
    50         "version_normalized": "1.0.5.0",
     49        "version": "1.1.0",
     50        "version_normalized": "1.1.0.0",
    5151        "source": {
    5252            "type": "git",
    5353            "url": "https://github.com/waughjai/html-attribute-list.git",
    54             "reference": "6f7bb02668b3b776c7ccc7bda91a4d6b270153a0"
    55         },
    56         "dist": {
    57             "type": "zip",
    58             "url": "https://api.github.com/repos/waughjai/html-attribute-list/zipball/6f7bb02668b3b776c7ccc7bda91a4d6b270153a0",
    59             "reference": "6f7bb02668b3b776c7ccc7bda91a4d6b270153a0",
     54            "reference": "a34914ddfeab96efbbec1206120ff7fd682326d4"
     55        },
     56        "dist": {
     57            "type": "zip",
     58            "url": "https://api.github.com/repos/waughjai/html-attribute-list/zipball/a34914ddfeab96efbbec1206120ff7fd682326d4",
     59            "reference": "a34914ddfeab96efbbec1206120ff7fd682326d4",
    6060            "shasum": ""
    6161        },
     
    6767            "phpunit/phpunit": "6.*"
    6868        },
    69         "time": "2018-11-12T20:30:34+00:00",
     69        "time": "2018-12-28T23:34:34+00:00",
    7070        "type": "project",
    7171        "installation-source": "dist",
     
    9494    {
    9595        "name": "waughj/html-link",
    96         "version": "1.2.6",
    97         "version_normalized": "1.2.6.0",
     96        "version": "1.2.7",
     97        "version_normalized": "1.2.7.0",
    9898        "source": {
    9999            "type": "git",
    100100            "url": "https://github.com/waughjai/html-link.git",
    101             "reference": "26464551191b23e3f5bf229e5c25b38f6b0e71a8"
    102         },
    103         "dist": {
    104             "type": "zip",
    105             "url": "https://api.github.com/repos/waughjai/html-link/zipball/26464551191b23e3f5bf229e5c25b38f6b0e71a8",
    106             "reference": "26464551191b23e3f5bf229e5c25b38f6b0e71a8",
    107             "shasum": ""
    108         },
    109         "require": {
    110             "php": ">=7.0",
    111             "waughj/html-attribute-list": ">=1.0.5",
     101            "reference": "6422e2355aec11dbe87d86e56ced27026ee1ee74"
     102        },
     103        "dist": {
     104            "type": "zip",
     105            "url": "https://api.github.com/repos/waughjai/html-link/zipball/6422e2355aec11dbe87d86e56ced27026ee1ee74",
     106            "reference": "6422e2355aec11dbe87d86e56ced27026ee1ee74",
     107            "shasum": ""
     108        },
     109        "require": {
     110            "php": ">=7.0",
     111            "waughj/html-attribute-list": ">=1.0.7",
    112112            "waughj/test-hash-item": ">=1.0.1"
    113113        },
     
    115115            "phpunit/phpunit": "6.*"
    116116        },
    117         "time": "2018-11-12T20:32:16+00:00",
     117        "time": "2018-11-28T20:41:43+00:00",
    118118        "type": "project",
    119119        "installation-source": "dist",
     
    238238    {
    239239        "name": "waughj/test-hash-item",
    240         "version": "1.0.1",
    241         "version_normalized": "1.0.1.0",
     240        "version": "1.1.0",
     241        "version_normalized": "1.1.0.0",
    242242        "source": {
    243243            "type": "git",
    244244            "url": "https://github.com/waughjai/test-hash-item.git",
    245             "reference": "ddf5cbc1cadb2342d3a725a062bfaa20b7404807"
    246         },
    247         "dist": {
    248             "type": "zip",
    249             "url": "https://api.github.com/repos/waughjai/test-hash-item/zipball/ddf5cbc1cadb2342d3a725a062bfaa20b7404807",
    250             "reference": "ddf5cbc1cadb2342d3a725a062bfaa20b7404807",
     245            "reference": "5657dc1ac52e629acdd6ce57936acafc60b00394"
     246        },
     247        "dist": {
     248            "type": "zip",
     249            "url": "https://api.github.com/repos/waughjai/test-hash-item/zipball/5657dc1ac52e629acdd6ce57936acafc60b00394",
     250            "reference": "5657dc1ac52e629acdd6ce57936acafc60b00394",
    251251            "shasum": ""
    252252        },
     
    257257            "phpunit/phpunit": "6.*"
    258258        },
    259         "time": "2018-10-23T18:46:38+00:00",
     259        "time": "2018-11-29T20:46:20+00:00",
    260260        "type": "project",
    261261        "installation-source": "dist",
  • waj-links/trunk/vendor/waughj/html-attribute-list/src/HTMLAttributeList.php

    r1973233 r2010130  
    5353        }
    5454
     55        // Returns hash map / associative array o' attribute values.
     56        public function getAttributeValuesMap() : array
     57        {
     58            $hash = [];
     59            foreach ( $this->attributes as $attribute )
     60            {
     61                $hash[ $attribute->getKey() ] = $attribute->getValue();
     62            }
     63            return $hash;
     64        }
     65
    5566        // Returns hash map / associative array o' Attribute objects.
    5667        public function getAttributes() : array
     
    6677        }
    6778
    68         public function getAttributeValue( string $attribute_key ) : string
     79        public function getAttributeValue( string $attribute_key )
    6980        {
    7081            $attribute = $this->getAttribute( $attribute_key );
     
    7283        }
    7384
    74         public function getAttribute( string $attribute_key ) : HTMLAttribute
     85        public function getAttribute( string $attribute_key )
    7586        {
    7687            if ( $this->hasAttribute( $attribute_key ) )
  • waj-links/trunk/vendor/waughj/html-attribute-list/tests/HTMLAttributeListTest.php

    r1973233 r2010130  
    2525        $this->assertEquals( count( $values ), count( self::DEMO_ATTS ) );
    2626        $this->assertEquals( $values, self::DEMO_VALUES );
     27    }
     28
     29    public function testAttributesValuesMap() : void
     30    {
     31        $attributes = $this->getDemoObject();
     32        $values = $attributes->getAttributeValuesMap();
     33        $this->assertEquals( count( $values ), count( self::DEMO_ATTS ) );
     34        $this->assertEquals( $values, self::DEMO_ATTS );
    2735    }
    2836
  • waj-links/trunk/vendor/waughj/html-link/composer.json

    r1973233 r2010130  
    1313    "require": {
    1414        "php": ">=7.0",
    15         "waughj/html-attribute-list": ">=1.0.5",
     15        "waughj/html-attribute-list": ">=1.0.7",
    1616        "waughj/test-hash-item": ">=1.0.1"
    1717    },
  • waj-links/trunk/vendor/waughj/test-hash-item/README.md

    r1973233 r2010130  
    2020TestHashItemClass: Tests if the hash has something for the key & is an member of a certain class. Takes 4 arguments, with the last 3 being the usual list, key, & fallback arguments & the 1st argument being the name o' the class to test for.
    2121
     22TestHashItemIsTrue: Tests if hash has something for the key & its value is truthy. Takes only list & key & only returns true or false.
     23
    2224Finally, TestHashItem has before the other 3 arguments a callable function argument to allow one to create a custom test to be run in addition to testing if the hash map contains the key.
  • waj-links/trunk/vendor/waughj/test-hash-item/src/TestHashItem.php

    r1973233 r2010130  
    66    function TestHashItemExists( array $list, string $key, $fallback = null )
    77    {
    8         return ( is_array( $list ) && isset( $list[ $key ] ) ) ? $list[ $key ] : $fallback;
     8        return ( array_key_exists( $key, $list ) ) ? $list[ $key ] : $fallback;
    99    }
    1010
     
    4848    }
    4949
     50    function TestHashItemIsTrue( array $list, string $key ) : bool
     51    {
     52        return TestHashItemExists( $list, $key ) && $list[ $key ];
     53    }
     54
    5055    function TestHashItem( callable $function, array $list, string $key, $fallback = null )
    5156    {
  • waj-links/trunk/vendor/waughj/test-hash-item/tests/TestHashItemTest.php

    r1973233 r2010130  
    99use function \WaughJ\TestHashItem\TestHashItemObject;
    1010use function \WaughJ\TestHashItem\TestHashItemClass;
     11use function \WaughJ\TestHashItem\TestHashItemIsTrue;
    1112
    1213class TestHashItemTest extends TestCase
     
    7273        $this->assertEquals( TestHashItemClass( 'Date', $list, 'date-obj', null ), null );
    7374    }
     75
     76    public function testItemIsTrue() : void
     77    {
     78        $switch1 = [ 'value' => true ];
     79        $switch2 = [ 'value' => 1 ];
     80        $switch3 = [ 'value' => 0 ];
     81        $switch4 = [ 'value' => 'afdafsaf' ];
     82        $switch5 = [ 'value' => '' ];
     83        $switch6 = [ 'value' => null ];
     84        $switch7 = [ 'value' => false ];
     85        $this->assertEquals( TestHashItemIsTrue( $switch1, 'value' ), true );
     86        $this->assertEquals( TestHashItemIsTrue( $switch2, 'value' ), true );
     87        $this->assertEquals( TestHashItemIsTrue( $switch3, 'value' ), false );
     88        $this->assertEquals( TestHashItemIsTrue( $switch4, 'value' ), true );
     89        $this->assertEquals( TestHashItemIsTrue( $switch5, 'value' ), false );
     90        $this->assertEquals( TestHashItemIsTrue( $switch6, 'value' ), false );
     91        $this->assertEquals( TestHashItemIsTrue( $switch7, 'value' ), false );
     92    }
    7493}
Note: See TracChangeset for help on using the changeset viewer.