RedUNIT\Base\Bean::testDeleteSharedListWithEmptyArray PHP Method

testDeleteSharedListWithEmptyArray() public method

You CAN delete a shared-list by assiging an empty array.
    public function testDeleteSharedListWithEmptyArray()
    {
        $book = $this->_createBook();
        asrt(isset($book->sharedTag), FALSE);
        //not loaded yet, lazy loading
        asrt(count($book->sharedTag), 2);
        //when loaded has 2
        $book->sharedTag = array();
        //remove all
        R::store($book);
        asrt(isset($book->sharedTag), FALSE);
        //not loaded yet, lazy loading
        asrt(count($book->sharedTag), 0);
    }